[TYPO3-german] Re: Bildeigenschaften in dem Element textmedia in fluid_styled_content auslesen

Christoph Daecke typo3 at mediadreams.org
Wed Mar 30 15:12:15 CEST 2016


Aha, die "mergedProperties" verstecken sich im Template in "properties". Ich komme also über {column.media.properties} an die gewünschten Informationen.

So sieht nun men template aus:

<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">

<div id="c{data.uid}" class="slideshow">
<div class="slideset">

<f:for each="{gallery.rows}" as="row">
<f:for each="{row.columns}" as="column">
<f:if condition="{column.media}">
<div class="slide">
<div class="bg">
<span data-srcset="{f:uri.image(src:column.media.properties.uid, treatIdAsReference:1, width:1200c, height:600c)}, {f:uri.image(src:column.media.properties.uid, treatIdAsReference:1, width:2400c, height:1200c)} 2x"></span>
</div>
<div class="text">
<strong class="title">{column.media.properties.title}</strong>
<span class="desc">{column.media.properties.description}</span>
</div>
</div>
</f:if>
</f:for>
</f:for>

</div>
</div>

</html>


More information about the TYPO3-german mailing list