Forums / Setup & design / Object relation list vs related items
Daniel Guerrier
Tuesday 29 March 2005 9:32:36 am
Is there any advantage or disadvantage between relating objects in the content class using the object relation datatype and relating object thru the interface.
If use the latter, how do I get a list of related items.
Xavier Dutoit
Wednesday 30 March 2005 1:10:49 am
Hi fighter ;)
The advantage of the related object is that you can find the reverse relations (find all the objects that they they are related to me).
Have a look at my contrib: http://ez.no/community/contribs/datatypes/enhanced_objectrelation
It allows both to have a nice list display for the selection and store it has a real object relation.
Xavier
http://www.sydesy.com
Ćukasz Serwatka
Wednesday 30 March 2005 1:18:21 am
Difference depends on the usage. The related objects list on the bottom (relating object thru the interface) is really meant for general related objects through the XML fields.
If you have specific related objects you should use a datatype since this gives you more control.
Personal website -> http://serwatka.net Blog (about eZ Publish) -> http://serwatka.net/blog
Stefano Guandalini
Monday 03 October 2005 3:29:14 am
This is very nice, but is there any way to know if an object is pointed to, from a relation that is stored in a datatype, as for the reverse related object list?
Thank you.
Bye
Stefano Guandalini http://www.nizan.net
Monday 03 October 2005 6:07:18 am
Actally, eor uses the same table than the standard object relation. You can use all the standard features to fetch related (and reverse related) objects.
http://ez.no/community/contribs/datatypes/enhanced_objectrelation