[TYPO3-mvc] [Fluid] Get information param from ObjectStorage object

Claus Fassing claus at fassing.eu
Wed Mar 30 21:36:25 CEST 2011


Am 28.03.2011 22:24, schrieb Marc Bastian Heinrichs:
> Hey,
> 
>> Or is it possible to create a count construct with fluid inside the for
>> each loop ?
> 
> From for viewhelper examples
> 
> <f:for each="{0:1, 1:2, 2:3, 3:4}" as="foo" iteration="fooIterator">
>   <li>Index: {fooIterator.index} Cycle: {fooIterator.cycle} Total:
> {fooIterator.total}{f:if(condition: fooIterator.isEven, then: '
> Even')}{f:if(condition: fooIterator.isOdd, then: '
> Odd')}{f:if(condition: fooIterator.isFirst, then: '
> First')}{f:if(condition: fooIterator.isLast, then: ' Last')}</li>
> </f:for>
> 
> <output>
> <ul>
> <li>Index: 0 Cycle: 1 Total: 4 Odd First</li>
> <li>Index: 1 Cycle: 2 Total: 4 Even</li>
> <li>Index: 2 Cycle: 3 Total: 4 Odd</li>
> <li>Index: 3 Cycle: 4 Total: 4 Even Last</li>
> </ul>
> </output>
> 
> 
> Regards,
> Marc Bastian

Many thanks Marc !

I looked into the Rau/Kurfürst book and http://wiki.typo3.org/Fluid but
the Cheat Sheet got it.
Nice to know.

Greetz Claus


More information about the TYPO3-project-typo3v4mvc mailing list