[TYPO3-english] Re: how to: find the length of a typoscript defined array in fluid?
Calgacus map Brude
calgach at gmail.com
Thu Jan 2 17:47:41 CET 2014
the itemIteration.total variable, eg to print a header if there is more than one hall but none if there is only one:
<f:for each="{settings.halls}" as="hall" key="number" iteration="itemIteration">
<f:if condition="{itemIteration.total} > 1">
<f:if condition="{itemIteration.isLast}">
<th><f:translate key="tx_bpscoupons_domain_model_coupon.hall" /></th>
</f:if>
</f:if>
</f:for>
More information about the TYPO3-english
mailing list