Forums / Setup & design / Group_by parameter in fetch function
Scott Blundell
Wednesday 03 March 2004 4:19:20 am
Does anyone have any examples on how to use the group_by parameter within the fetch function?
It sounds useful but I cannot find any documentation or any examples that use it.
Thanks in advance
Scott
James Packham
Wednesday 03 March 2004 5:33:34 am
There's an example in the blog demo. If you didn't install it look at
kernel/setup/packages/blog/files/default/design.blog/override/templates/archive_navigatorbar.tplkernel/setup/packages/blog/files/default/design.blog/override/templates/log_navigationbar.tpl
Regards,
James
Wednesday 03 March 2004 7:42:40 am
Thanks for the help, James - it was just what I was after.
Regards
Alex Jones
Wednesday 03 March 2004 7:44:39 am
It would be nice to see some documentation on <i>group_by</i>. I have no clue as to what it does other than assuming that it will group the returned results. But what are the valid keys that we can group by? Attributes, classes, sections...?
Alex
Alex [ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ] <i>When in doubt, clear the cache.</i>