Skip to content

Instantly share code, notes, and snippets.

@elmarputz
Created November 12, 2018 09:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elmarputz/d5295e4c023bb026ab89c340a71b7721 to your computer and use it in GitHub Desktop.
Save elmarputz/d5295e4c023bb026ab89c340a71b7721 to your computer and use it in GitHub Desktop.
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<div id="c{data.uid}" class="content">
<f:if condition="{data.header}">
<header>
<h1>{data.header}</h1>
<p>{data.subheader}</p>
</header>
</f:if>
<f:if condition="{data.bodytext}">
<f:format.html>{data.bodytext}</f:format.html>
</f:if>
</div>
<span class="image object">
<f:if condition="{gallery.rows}">
<f:if condition="{gallery.rows.1.columns.1.media}">
<f:media file="{gallery.rows.1.columns.1.media}" />
</f:if>
</f:if>
</span>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment