[TYPO3-mvc] FLUID: extended loop features

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


Martin Kutschker schrieb:
> Hi!
> 
> I'm missing a few features of Smarty in the view helpers dedicated to rendering of loops. Smarty has
> a few convenient "variables" which will tell you a bit about the state of the loop. Therefore I
> propose a name attribute for all loop oriented view helpers.

Another idea which addresses a specific problem is this:

<f:joinedFor each="..." as="element">
 <f:item>{element}</f:item>
 <f:separator>,<f:separator>
</f:join >

But this is yet another specialzed loop. So for I count three: "for", "groupedFor" and "cycle".

Masi


More information about the TYPO3-project-typo3v4mvc mailing list