Object relations
Summary
Stores relations to other content objects.Properties
Name | Internal name | Searchable | Information collector |
---|---|---|---|
Object relations | ezobjectrelationlist | Yes. | No. |
Description
This datatype allows the relation of multiple objects. The following screenshot shows the class attribute edit interface for this datatype.
Class attribute edit interface for the "Object relations" datatype.
Object attribute edit interface
The following screenshot shows the object attribute edit interface for this datatype.
Object attribute edit interface for the "Object relations" datatype.
Raw output
The ".content" of an ezcontentobjectattribute object using this datatype returns either FALSE (if there are no relations) or an array of ezcontentobjectattribute objects.
Balazs Halasy (21/02/2005 2:41 pm)
Balazs Halasy (06/05/2005 12:40 pm)
Comments
Use undocumented site.ini setting to make it work like it used to
Thursday 24 November 2005 11:20:10 am
Daniel Staver
[BackwardCompatibilitySettings]
AdvancedObjectRelationList=enabled
INI-based limitations for browse selection method
Wednesday 18 January 2006 9:24:02 am
Kristof Coomans
Where 240 is the class attribute id and AddRelatedImageToDataType is the browse type (this type can be configured in browse.ini).
If for a specific class attribute no browse type has been specified, AddRelatedObjectListToDataType is used.
The Object Relation datatype uses the same settings, but the default browse type is AddRelatedObjectToDataType.
Re: INI-based limitations for browse selection method
Sunday 12 March 2006 10:54:05 am
Kristof Coomans
minor typo
Friday 21 April 2006 4:38:32 pm
Matthew Carroll
...or an array of ezcontentobject objects.
(The link target is correct.)
Example code to fill an attribute of this datatype with PHP
Wednesday 21 June 2006 6:25:50 pm
Kristof Coomans
content access didn't word that way
Thursday 11 January 2007 5:33:18 pm
Dag Sverre Seljebotn
{foreach $myezattr.content.relation_list as $relation}
{def $obj=fetch('content', 'object',
hash('object_id', $relation.contentobject_id))}
...
{undef $obj}
{/foreach}
Wondering if there's some fundamental thing I haven't understood here though...