Also falls mein Bsp nicht eindeutig ist , ich bezog mich auf dieses aus der Doku
Code:
{{ contao_figure(id, [200, 200, 'proportional'], {
metadata: { alt: 'Contao Logo', caption: 'Look at this CMS!' },
enableLightbox: true,
lightboxGroupIdentifier: 'logos',
lightboxSize: '_big_size',
linkHref: 'https://contao.org',
options: { attr: { class: 'logo-container' } }
}) }}
bzw. das für Cto 5 - was leider bei mir nicht ging ( mit {% set figure ... )
Code:
{% set figure = figure(id, [200, 200, 'proportional'], {
metadata: { alt: 'Contao Logo', caption: 'Look at this CMS!' },
enableLightbox: true,
lightboxGroupIdentifier: 'logos',
lightboxSize: '_big_size',
linkHref: 'https://contao.org',
options: { attr: { class: 'logo-container' } }
}) %}
und da ergibt sich die Frage ob ich individuelle Angaben für alt, caption etc. mit generellen Metadaten aus der Bilddatei zusammenbringen kann