[TYPO3-mvc] If-ViewHelper problems

Joerg Schoppet joerg at schoppet.de
Wed Jul 22 12:40:21 CEST 2009


Andriy Kushnarov schrieb:
> Dear all,
> 
> I found such code:
> 
> <ul>
> 	<f:for each="{users}" as="user" key="index">
> 		<li <f:if condition="{index} %
> 2">class="even"</f:if>">{user.firstName} {user.lastName}</li>
                         ^
> 	</f:for>
> </ul>
> 
> does it work? As for me it doesn't :)
> 

Look to my comment and what is with the <f:then>-statement?


Joerg


More information about the TYPO3-project-typo3v4mvc mailing list