tx_news
Template Selector & Templates, show in all view default, tx_news alle Kategorien ausgeben
Alternierende Templates in der Listview
<f:for each="{news}" as="newsItem" iteration="iterator">
<f:if condition="{iterator.index} % 3 == 0">
<f:render partial="List/Item_Layout1" arguments="{newsItem: newsItem,settings:settings,iterator:iterator}" />
</f:if>
<f:if condition="{iterator.index} % 3 == 1">
<f:render partial="List/Item_Layout2" arguments="{newsItem: newsItem,settings:settings,iterator:iterator}" />
</f:if>
<f:if condition="{iterator.index} % 3 == 2">
<f:render partial="List/Item_Layout3" arguments="{newsItem: newsItem,settings:settings,iterator:iterator}" />
</f:if>
</f:for>
Template Selector tx_news
tx_news.templateLayouts {
1 = Referenzen
2 = Kunden
3 = Navigation Template
4 = Video
}
<f:if condition="{settings.templateLayout} == 2">
<f:then>
<div class="single">
<f:for each="{news}" as="newsItem">
<f:render partial="List/kunden" arguments="{newsItem: newsItem, settings:settings}"/>
</f:for>
</div>
</f:then>
</f:if>
tx_news alle Kategorien ausgeben
<f:if condition="{newsItem.categories}">
<f:for each="{newsItem.categories}" as="category" iteration="iteratorCategories">
{category.title}
</f:for>
</f:if>
show in all view default
#News Bild default in List anzeigen
#Page TSConfig
TCAdefaults.sys_file_reference.showinpreview = 1