Forums / Setup & design / related_objects: objects related by attributes only
paul bolger
Sunday 25 February 2007 9:09:52 pm
Is it possible to fetch only related objects which are related by attribute, and not those related at object level?
I've tried fiddling with 'attribute_identifier' and 'all_relations' but no joy so far.
Paul Bolger
Xavier Dutoit
Monday 26 February 2007 5:50:43 am
The 'attribute_identifier' is what you want. the syntax is "news/country" (assuming country is a related object attribute of the class news).
X+
http://www.sydesy.com
Monday 26 February 2007 4:22:17 pm
I was wondering if there is a generic 'related by attribute' method
Kind of the opposite of 'all_relations FALSE'
It would mean I could recycle the template for a few different situations, rather than have different ones for each class.
Kristof Coomans
Monday 26 February 2007 11:05:59 pm
Hi Paul
Did you try the group_by_attribute parameter?
http://ez.no/doc/ez_publish/technical_manual/3_8/reference/modules/content/fetch_functions/related_objects
independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org