[TYPO3-mvc] [Fluid] Get information param from ObjectStorage object
Marc Bastian Heinrichs
typo3 at mbh-web.de
Mon Mar 28 22:24:24 CEST 2011
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
More information about the TYPO3-project-typo3v4mvc
mailing list