Das figcaption Element hat 100% Höhe und 100% Breite. Daran scheint es nicht zu liegen.
Momentan habe ich das mit dem Inhaltselement "Bild" angelegt. Da kann ich den Link nur für das Bild eingeben.
Selbst wenn ich im Template noch ein div drumherum setze und auch da den Link per PHP einsetze, funktiniert es nicht (damit man den div-Kasten erkennt, habe ich ihm die Klasse "linkkasten" gegeben).
PHP-Code:
<?php $this->extend('block_searchable'); ?>
<?php $this->block('content'); ?>
<div class="linkkasten"><?php if ($this->href): ?><a href="<?php echo $this->href; ?>"><?php endif; ?>
<figure class="image_container"<?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 ?>>
<?php endif; ?>
<?php $this->insert('picture_default', $this->picture); ?>
<?php if ($this->href): ?>
</a>
<?php endif; ?>
<?php if ($this->caption): ?>
<figcaption class="caption"><?php if ($this->href): ?><a href="<?php echo $this->href; ?>"><?php endif; ?><?php echo $this->caption; ?><?php if ($this->href): ?></a><?php endif; ?></figcaption>
<?php endif; ?>
</figure>
</div>
<?php $this->endblock(); ?>
Lesezeichen