Forums / Setup & design / How to use $grouped_related_contentobjects ?
H-Works Agency
Wednesday 26 July 2006 4:21:41 am
How to use $grouped_related_contentobjects to have for a certain nodes related objects grouped by groups founded in content.ini ?
It looks like a new feature since 3.5 but i can't find any documentation about this.
In the admin part, this variable is used under 'design/admin/templates/content/edit_relations.tpl'
But when i try to use it in a classical template on the public site this variable is undefined.
Any idea ?
Martin
EZP is Great
Kristof Coomans
Wednesday 26 July 2006 7:05:34 am
Hello Martin
grep to the rescue :-)
cd to your eZ publish root dirgrep -irlP "grouped_related_contentobjects" *
you will get back a list with at least these files:
design/admin/templates/content/edit_relations.tpl doc/features/3.5/related_object.txt (contains the documentation)kernel/content/relation_edit.php (this file is included by kernel/content/edit.php, contains the PHP code to get the array you want, search for $groupedRelatedObjects)
independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org
Thursday 03 August 2006 10:30:44 am
Sorry...didn't set the 'track changes' on my topic.
Thanx for your 'grep' technique...i use it a lot for those kind of search operations :)
So from what you tell me, this $grouped_related_contentobjects is not part of the $node object. Though i have to create it myself.
Thursday 03 August 2006 11:02:22 pm
Indeed. You should post an enhancement request to have this as a functional attribute in eZContentObject.