Hallo Robert,
das sollte möglich sein. Dazu musst Du das Newsreader-Template ein wenig anpassen. Wenn Du das news_full Template verwendest, findest Du dort in etwa folgenden Code vor:
PHP-Code:
<?php if ($this->addImage): ?>
<div class="image_container<?php echo $this->floatClass; ?>"<?php if ($this->margin || $this->float): ?> style="<?php echo trim($this->margin . $this->float); ?>"<?php endif; ?>>
<?php if ($this->href): ?>
<a href="<?php echo $this->href; ?>"<?php echo $this->attributes; ?> title="<?php echo $this->alt; ?>">
<?php endif; ?>
<img src="<?php echo $this->src; ?>"<?php echo $this->imgSize; ?> alt="<?php echo $this->alt; ?>" />
<?php if ($this->href): ?>
</a>
<?php endif; ?>
<?php if ($this->caption): ?>
<div class="caption"><?php echo $this->caption; ?></div>
<?php endif; ?>
</div>
<?php endif; ?>
ergänzt wäre der Code dann in etwa so:
PHP-Code:
<?php if ($this->addImage): ?>
<div class="image_container<?php echo $this->floatClass; ?>"<?php if ($this->margin || $this->float): ?> style="<?php echo trim($this->margin . $this->float); ?>"<?php endif; ?>>
<?php if ($this->href): ?>
<a href="<?php echo $this->href; ?>"<?php echo $this->attributes; ?> title="<?php echo $this->alt; ?>">
<?php endif; ?>
<img src="<?php echo $this->src; ?>"<?php echo $this->imgSize; ?> alt="<?php echo $this->alt; ?>" />
<?php if ($this->href): ?>
</a>
<?php endif; ?>
<?php if ($this->caption): ?>
<div class="caption">
<?php echo $this->caption; ?>
</div>
<?php endif; ?>
</div>
<?php else: ?>
<div class="image_container">
<img src="tl_files/pfad/zum/standard/kategoriebild.jpg" alt="Kategoriebild Beispiel 1" />
</div>
<?php endif; ?>
Wenn Du pro Kategorie ein anderes Bild einfügen willst, musst Du natürlich noch innerhalb des image_containers abfangen, in welcher Kategorie Du Dich z.Zt. befindest und dementsprechend ein anderes Bild als src angeben.
Lesezeichen