[TYPO3-mvc] [SOLUTION]: f:groupedFor and grouping by multi-value property

Thomas Allmer at at delusionworld.com
Fri Oct 14 16:10:52 CEST 2011


On 14.10.2011 14:11, Dmitri Pisarev wrote:
> Hey guys!
> I have just adjusted a f.groupedFor viewhelper to be able to group by
> multi-value propertie.

I also have a custom GroupFor Viewhelper to use Datetime...
https://gist.github.com/1287203

> I.e. in my case each place belongs to many categories, and I want to
> display it in each category in the menu. So here is my fix:
> http://pastebin.ca/2090041

as you only modified the groupElements Function you could just extend 
from the original GroupedFor and don't touch the render function... less 
code to maintain :)

http://pastebin.ca/2090068

cheers
-- 
+---------------------------------+-----------------------------------+
| Thomas Allmer                   |   http://www.delusionworld.com    |
| E-mail: at at delusionworld.com    |   phone: +43 699 16217064         |
+---------------------------------+-----------------------------------+


More information about the TYPO3-project-typo3v4mvc mailing list