[FLOW3-general] nested lists
Bastian Waidelich
bastian at typo3.org
Fri Oct 22 17:20:07 CEST 2010
Martin Kutschker wrote:
Hi Martin,
>> Feel free to add your own version @ http://forge.typo3.org/projects/show/package-viewhelperincubator ;)
>
> That one shouldn't be too hard to implement :)
>
> But to get back to the point. I got the impression that most if not all authors of the books the v5
> team recommends favour an expressive API the reveals its intention. "groupedFor" is no real word
> (opposed to "for" which yields "for each (do)").
You're absolutely right. This should have been named better in the first
place..
Currently there are issues with higher priority IMO. But if someone
would open an issue for this, I'd look into it asap. (we could mark the
groupedFor view helper deprecated so that it stays backwards compatible).
Instead of:
<f:group eachOf="{objects}" as="objectsOfThisType" by="type"
usingKey="type">
I would probably vote for
<f:group each="{objects}" by="type" as="objectsOfThisType" key="type">
though. Agree?
Best,
Bastian
More information about the FLOW3-general
mailing list