???
Mit news_latest.tpl rendere ich momentan nur EINE Ansicht. "news-details" ist in der Standardinstallation 2.7.1 nicht enthalten, habe alle Dateien durchsucht.
Was da passiert ist jetzt, dass wenn ein Redakteur einen Teaser eingibt, dann wird der Teaser in der Liste, welche mit news_latest.tpl gerendert wird, angezeigt. Gibt er keinen Teaser ein, dann werden die ersten 160 Zeichen aus dem Newstext genommen, hinten noch " ..." angefügt und noch ein schließendes p-Element hinten "wieder" angehängt.
So sieht mein kompl. news_latest.tpl aus, getrimmt auf YAML und fancybox:
HTML-Code:
<div class="layout_latest<?php echo $this->class; ?> floatbox">
<?php if ($this->hasMetaFields): ?>
<p class="meta"><?php echo $this->date; ?> <?php echo $this->author; ?> <?php echo $this->commentCount; ?></p>
<?php endif; ?>
<?php if ($this->addImage): ?>
<p class="icaption_<?php echo trim(str_replace('float:','',$this->float),' ;'); ?>">
<?php if ($this->fullsize): ?>
<a href="<?php echo $this->href; ?>" title="<?php echo $this->alt; ?>" rel="group">
<?php endif; ?>
<img src="<?php echo $this->src; ?>" alt="<?php echo $this->alt; ?>" />
<?php if ($this->caption): ?>
<strong><?php echo $this->caption; ?></strong>
<?php endif; ?>
<?php if ($this->fullsize): ?>
</a>
<?php endif; ?>
</p>
<?php endif; ?>
<h2><?php echo $this->headline; ?></h2>
<?php if ($this->teaser): ?>
<p class="teaser"><?php echo $this->teaser; ?></p>
<?php else: ?>
<?php echo substr($this->text,0,160).'...'; ?></p>
<?php endif; ?>
<?php if ($this->text): ?>
<p class="more"><?php echo $this->more; ?></p>
<?php endif; ?>
</div>
Andreas
Lesezeichen