[TYPO3-mvc] fluid: adding own variables [discussion]
Christian Zenker
christian.zenker at 599media.de
Fri Jul 17 10:57:40 CEST 2009
Am 17.07.2009, 10:40 Uhr, schrieb Bastian Waidelich <bastian at typo3.org>:
Hi Bastian
> Furthermore your example get's considerably more complex by adding the
> zebra classes.
I just like the most flexible solution :)
> To keep a long story short: As Steffen already proposed, we need a
> rotate view helper. Though I'd prefer the name "cycle":
>
> <f:cycle name="zebra" values="{0: 'odd', 1: 'even'}">
> <li class="{zebra}">foo</li>
> </f:cycle>
How is this supposed to work inside a ForViewHelper?
Christian.
More information about the TYPO3-project-typo3v4mvc
mailing list