[TYPO3-ttnews] Template Layouts

Anna Doring anna.doring at web.de
Tue May 29 16:23:08 CEST 2012


Hi there,

I tried to set up different template layouts for the list view. I 
followed the instruction in the wiki 
(http://forge.typo3.org/projects/extension-news/wiki/Using_the_Template_Layout) 
and everything worked fine. Now I have to create more then two different 
layouts, so I can't use the if-then-else-construction. I'm new to fluid 
and tried a few codes like this one:


<f:if condition="{0:settings.templateLayout} == {0:'listStandard'}">
<f:then>
<f:render partial="List/Item" arguments="{newsItem: newsItem, 
settings:settings, className:className, view:'list'}"/>
</f:then>
</f:if>

<f:if condition="{0:settings.templateLayout} == {1:'listTopics'}">
<f:then>
<f:render partial="List/Topics" arguments="{newsItem: newsItem, 
settings:settings, className:className, view:'list'}"/>
</f:then>
</f:if>

... without success: The standard view seems to work fine, but chosing 
the list of topics (the second layout) makes the headlines disappear.

Can somebody help me?

All the best
Anna


More information about the TYPO3-project-tt-news mailing list