Guten Morgen.
Ich bin gerade mal wieder am Basteln und komme nicht zum Ziel. Folgendes:
Wie im angehängten Bild ersichtlich, wird erst der Text und darunter das Bild dargestellt. Ich möchte jedoch, dass das Bild links vom Text angeordnet ist, und inkl caption letztlich vom Text umflossen wird.
Ich verwende das tlyaml-Paket und folgenden Templatecode:
Code:
<div class="layout_latest block<?php echo $this->class; ?>">
<h3><?php echo $this->linkHeadline; ?></h3>
<?php if ($this->hasMetaFields): ?>
<p class="info">
<?php
preg_match('/([0-9]{2}).([0-9]{1,2}).([0-9]{4})/',$this->date,$date);
echo $date[1] . ". " . $GLOBALS['TL_LANG']['MONTHS'][$date[2]-1] . " " . $date[3];
?>
<?php echo $this->author; ?> <?php echo $this->commentCount; ?></p>
<?php endif; ?>
<p class="teaser"><?php echo $this->teaser; ?></p>
<?php if ($this->addImage): ?>
<div class="image_container"<?php if ($this->margin || $this->float): ?> style="<?php echo $this->margin . $this->float; ?>"
<?php endif; ?>>
<?php if ($this->fullsize): ?><a href="<?php echo $this->href; ?>" title="<?php echo $this->alt; ?>" rel="lightbox"><?php endif; ?>
<img src="<?php echo $this->src; ?>" alt="<?php echo $this->alt; ?>" /><?php if ($this->fullsize): ?></a><?php endif; ?>
<?php if ($this->caption): ?>
<div class="caption"><?php echo $this->caption; ?></div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if ($this->text): ?>
<p class="more"><?php echo $this->more; ?></p>
<?php endif; ?>
</div>
Ich danke schon einmal für Ratschläge aller Art!
Gruß
Lesezeichen