Skip to content

Instantly share code, notes, and snippets.

@ABooooo
Last active November 1, 2018 08:12
Show Gist options
  • Save ABooooo/4e35fc5bb252989fdbb1 to your computer and use it in GitHub Desktop.
Save ABooooo/4e35fc5bb252989fdbb1 to your computer and use it in GitHub Desktop.
DCE format
// RTE
<f:format.html>{field.zitatText}</f:format.html>
// Single line text
<p>{field.zitatAutor}</p>
// Image (field:'variableName')
<f:for each="{dce:fal(field:'sliderImage', contentObject:contentObject)}" as="fileReference">
<f:image class="img-responsive" src="{fileReference.uid}" alt="" treatIdAsReference="1" />
</f:for>
// Link with text (create through section not element)
<f:for each="{field.textLink}" as="textmitlink">
<dce:typolink parameter="{textmitlink.link}">
{textmitlink.linkText}
</dce:typolink>
</f:for>
// Image with link
<f:for each="{dce:fal(field:'logos', contentObject:contentObject)}" as="fileReference">
<dce:typolink parameter="{fileReference.link}">
<f:image class="img-responsive" src="{fileReference.uid}" alt="" treatIdAsReference="1" />
</dce:typolink>
</f:for>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment