Include twig root marker and pending pinnwand DCA/template fixes

This commit is contained in:
Jürgen Mummert
2026-03-04 17:39:48 +01:00
parent 4ef0608d64
commit 980a6d83dd
4 changed files with 28 additions and 7 deletions

View File

View File

@@ -1,3 +1,5 @@
{% use '@Contao/component/_figure.html.twig' %}
<link rel="stylesheet" href="{{ asset('bundles/contaopinboard/css/pinboard.css') }}">
<section class="pinboard" data-pinboard>
@@ -10,9 +12,9 @@
data-seed="{{ entry.id }}"
aria-label="{{ entry.headline }}"
>
{% if entry.imagePath %}
{% if entry.imageFigure %}
<figure class="pin-note__image-wrap">
<img src="{{ asset(entry.imagePath) }}" alt="" class="pin-note__image">
{% with {figure: entry.imageFigure} %}{{ block('figure_component') }}{% endwith %}
</figure>
{% endif %}