Forums / Developer / Help creating a group_by attribute fetch function
H-Works Agency
Friday 29 December 2006 4:20:17 am
Hi all,
Does an advanced EZP user can tell me how could i create a custom fetch function that would fetch result grouped by childrens attributes ?
Thanx for the help.
Martin
EZP is Great
kracker
Friday 29 December 2006 4:43:28 am
Learning about fetch, a very old introduction (good read).<i>http://ez.no/Exponential/documentation/customization/custom_design/database_connectivity</i>
I think after reading this I would seek to add the custom fetch (and or attributes), I needed in the kernel as a ... proof of concept, possibly to be submitted back as a patch.Files to read, 'kernel/content/function_definition.php', 'kernel/content/ezcontentfunctioncollection.php'
Default fetch functions,<i>http://ez.no/doc/ez_publish/technical_manual/3_8/reference/template_fetch_functions</i>
Fetch Alias features,<i>http://ez.no/doc/ez_publish/technical_manual/3_6/reference/template_functions/miscellaneous/fetch_alias</i>
<i>//kracker</i>
<b>Related threads</b> <i>http://ez.no/community/forum/general/fetch_unique_content_on_some_attribute http://ez.no/community/forum/general/fetch_list_group_by_or_unique_on_child_attribute</i>
Member since: 2001.07.13 || http://ezpedia.se7enx.com/
Monday 01 January 2007 6:39:18 am
Ok thanx.
Its sad its not a built-in feature to be able to group per child attribute.
This would definitly solve the problem of managing the color/size/quantity in products in EZP.