Hallo Zusammen,
ich arbeite mit der dma-Erweiterung.
Nun habe ich ein einfaches Inhaltselement mit Bild, Text und Link angelegt.
Dazu habe ich eine eigenes Template "gebastelt":
HTML-Code:
<div class="<?php echo $this->class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<br>Bild: <?php if ($this->elements['bild']): ?><?php echo $this->elements['bild']; ?><?php endif; ?>
<br>Text: <?php if ($this->elements['text']): ?><?php echo $this->elements['text']; ?><?php endif; ?>
<br>Link: <?php if ($this->elements['link']): ?><?php echo $this->elements['link']; ?><?php endif; ?>
</div>
Soweit funktioniert auch alles gut.
Nun möchte ich den Link aber um das Bild und den Text legen.
<?php echo $this->elements['link']; ?> generiert sich ja aus der ce_hyperlink.html5 - oder?
Wie kann ich die einzelnen Codeelemente aus der ce_hyperlink.html5 in der dma_eg.html5 verwenden.
Am Ende soll in etwa folgendes Konstrukt funktionieren:
HTML-Code:
<div class="<?php echo $this->class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<?php if ($this->elements['link']): ?><a href="<?php echo $this->href; ?>"><?php endif; ?>
<section>
<?php if ($this->elements['bild']): ?><?php echo $this->elements['bild']; ?><?php endif; ?>
<?php if ($this->elements['text']): ?><?php echo $this->elements['text']; ?><?php endif; ?>
</section>
<?php if ($this->elements['link']): ?></a><?php endif; ?>
</div>
Vielen Dank für Eure Hilfe.
Lesezeichen