Project

General

Profile

Bug #52116 » List.html

List View - Benjamin Giesbrecht, 2013-09-18 18:10

 
{namespace sh=TYPO3\CMS\ShGallery\ViewHelpers}
<f:layout name="Default" />
<f:section name="main">
<ul class="mediaGal">
<li class="group first">
<ul>
<f:for each="{collections}" as="collection" iteration="itemIteration">
<li>
<sh:getFirstImage images="{collection.images}" />
<f:link.action action="show" arguments="{collection : collection}">
<f:image src="{image.originalResource.originalFile.uid}" width="125" alt="{image.originalResource.alternative}" title="{image.originalResource.title}" />
<span class="helReg">{collection.title} (<f:count subject="{collection.images}" />)</span>
</f:link.action>
<sh:deleteFirstImage />
</li>
<f:if condition="{itemIteration.cycle} % 5">
<f:then></f:then>
<f:else>
</ul>
</li>
<li class="group">
<ul>
</f:else>
</f:if>
<f:if condition="{itemIteration.isLast}">
</ul>
</li>
</f:if>
</f:for>
</ul>
</f:section>
(4-4/6)