Created
March 23, 2015 19:31
-
-
Save cedricziel/cd52ad919e21a630b2ba to your computer and use it in GitHub Desktop.
Quick rendering of ce's with a custom template overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<f:for each="{newsItem.contentElements}" as="element"> | |
<f:if condition="{element.CType} == 'text'"> | |
<f:comment> | |
This is a text element, you could vary the rendering depending on multiple conditions: | |
* CType | |
* layout | |
* frame | |
You would separate those into partials | |
</f:comment> | |
<h{element.headerLayout}> | |
{element.header} | |
</h{element.headerLayout}> | |
<div class="textelement"> | |
{element.bodytext -> f:format.html()} | |
</div> | |
</f:if> | |
</f:for> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment