[TYPO3-german] tx news und mehrere verschiedene List Layouts
Rainer Con
info at landei-agentur.de
Thu Jun 26 10:34:40 CEST 2014
D.h.
ich nehme die Datei Templates\News\List.html und setze dann
<f:if condition="{settings.templateLayout} == 1">
<f:then>
<f:section name="content">
<f:if condition="{news}">
<f:then>
<div class="news-list-view">
<f:if condition="{settings.hidePagination}">
<f:then>
<f:for each="{news}" as="newsItem" iteration="iterator">
<f:render partial="List/Item" arguments="{newsItem: newsItem,settings:settings,iterator:iterator}" />
</f:for>
</f:then>
<f:else>
<n:widget.paginate objects="{news}" as="paginatedNews" configuration="{settings.list.paginate}" initial="{offset:settings.offset,limit:settings.limit}">
<f:for each="{paginatedNews}" as="newsItem" iteration="iterator">
<f:render partial="List/Item" arguments="{newsItem: newsItem,settings:settings,iterator:iterator}" />
</f:for>
</n:widget.paginate>
</f:else>
</f:if>
</div>
</f:then>
<f:else>
<div class="no-news-found">
<f:translate key="list_nonewsfound" />
</div>
</f:else>
</f:if>
</f:section>
</f:if>
<f:if condition="{settings.templateLayout} == 2">
<f:then>
<!-- AUSGABE TEMPLATE 2 -->
</f:if>
More information about the TYPO3-german
mailing list