[TYPO3-mvc] FLUID: extended loop features
Martin Kutschker
masi-no at spam-typo3.org
Wed Jan 6 16:10:49 CET 2010
Martin Kutschker schrieb:
>
> iteration.isOdd
> iteration.isEven
I quite forgot about "cycle", but this is itself a shorthand for a loop with an expression on a
counter.
More fun would a helper that cycles through a list given on the counter of the current loop:
<li class="{f:loopCycle(values:{'odd','even'})}">
For nested loops you can access any loop you want:
<li class="{f:loopCycle(values:{'odd','even'}), loop:'loopName'}">
Masi
More information about the TYPO3-project-typo3v4mvc
mailing list