Hallo,
ich habe hier folgendes Problem:
für das ce_text.html5 template hatte ich das image.html5 angepasst, damit im <a>-tag ein data-fancybox mit hineinkommt.
Dies sieht nun so aus:
So, nun wäre mein Zugang dazu gewesen, nachdem das image.html5 ja auch im ce_image.html5 angesprochen wird, dass für beide Inhaltselemente (Text und Bild) das gleiche Ergebnis erscheint » tut es aber nicht: im ce_image wird das data-fancybox nicht mit eingetragen.PHP-Code:
<figure class="image_container<?= $this->floatClass ?>"<?php if ($this->margin): ?> style="<?= $this->margin ?>"<?php endif; ?>>
<?php if ($this->href): ?>
<a href="<?= $this->href ?>"<?php if ($this->linkTitle): ?> title="<?= $this->linkTitle ?>"<?php endif; ?><?= $this->attributes ?> data-fancybox="<?= $this->id ?>">
<?php endif; ?>
<?php $this->insert('picture_default', $this->picture); ?>
<?php if ($this->href): ?>
</a>
<?php endif; ?>
<?php if ($this->caption): ?>
<figcaption class="caption"><?= $this->caption ?></figcaption>
<?php endif; ?>
</figure>
Was übersehe ich?
[edit]link entfernt[/edit]
Konstellation:
/templates/layout/image.html5
» CE Text: funktioniert
» CE Bild: funktioniert nicht
Vielen Dank für den Hinweis in die richtige Richtung
Lesezeichen