[TYPO3-mvc] FLUID: extended loop features

Martin Kutschker masi-no at spam-typo3.org
Wed Jan 6 18:34:52 CET 2010


Sebastian Kurfürst schrieb:
> Hey,
> 
> 
>> More fun would a helper that cycles through a list given on the counter of the current loop:
> <f:cycle> does exactly that ;)

No. "cycle" has its own object/array to iterate over. I want to cyle *within* another loop. In this
case the "cycle" would take the iteration counter (via the rendering context?) from the referenced loop:

<f:for each="" as="" name="foobar">
...
<li class="{f:loopCycle(values:{'odd','even'}), loop:'foobar'}">
...
</f:for>

See the difference?

Masi


More information about the TYPO3-project-typo3v4mvc mailing list