Danke Spooky,
ein angepasstes gallery_default Template benutze ich nicht. Ein image.html5 template mit diesem Inhalt:
PHP-Code:
<figure class="image_container<?= $this->floatClass ?>"<?php if ($this->margin): ?> style="<?= $this->margin ?>"<?php endif; ?>>
<?php if ($this->imageHref || $this->href): ?>
<a href="<?= $this->imageHref ?: $this->href ?>"<?php if ($this->linkTitle): ?> title="<?= $this->linkTitle ?>"<?php endif; ?><?= $this->attributes ?>>
<?php endif; ?>
<?php $this->insert('picture_default', $this->picture); ?>
<?php if ($this->imageHref || $this->href): ?>
</a>
<?php endif; ?>
<div class="titletext"><?= $this->imageTitle ?></div>
<?php if ($this->caption): ?>
<figcaption class="caption"><?= $this->caption ?></figcaption>
<?php endif; ?>
</figure>
erzeugt in einem Content-Element Bild dieses HTML, der Container <div class="titletext"></div> wird befüllt:
HTML-Code:
<figure class="image_container">
<img src="">
<div class="titletext">Metaangabe Titel</div>
<figcaption class="caption">Bildunterschrift</figcaption>
</figure>
In einem Content-Element Galerie hingegen wird dieses HTML erzeugt, der Container <div class="titletext"></div> bleibt leer:
HTML-Code:
<figure class="image_container">
<a href="link" title="Metaangabe Titel" data-lightbox="lbnr" class="cboxElement">
<picture>
<source srcset="">
<img src="">
</picture>
</a>
<div class="titletext"></div>
<figcaption class="caption">Bildunterschrift</figcaption>
</figure>
Wie erreiche ich, dass mir die Metaangabe Titel auch in der Listenansicht aller Bilder einer Galerie im FE angezeigt wird. Vielen Dank für Hilfe und Support.
Lesezeichen