Path

7x / documentation / ez publish / technical manual / 3.7 / reference / datatypes / object relation


Caution: This documentation is for eZ Publish legacy, from version 3.x to 6.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

Object relation

Summary

Stores a relation to a content object.

Properties

NameInternal nameSearchableInformation collector
Object relation ezobjectrelation Yes. No.

Description

This datatype allows the relation of a single object. The following screenshot shows the class attribute edit interface for this datatype.

Class attribute edit interface for the "Object relation" datatype.

Class attribute edit interface for the "Object relation" datatype.

Object attribute edit interface

The following screenshot shows the object attribute edit interface for this datatype.

Object attribute edit interface for the "Object relation" datatype.

Object attribute edit interface for the "Object relation" datatype.

Raw output

The ".content" of an ezcontentobjectattribute object using this datatype returns either FALSE (if there is no relation) or an ezcontentobject object.

Balazs Halasy (21/02/2005 2:40 pm)

Balazs Halasy (29/04/2005 1:43 pm)


Comments

  • What are the "Default Selection Item" and "Allow Fuzzy Match" attributes for?

    Could you please expand the description of the "Object Relation Datatype" edit interface?

    I have tried using the "Default Selection Item" in the hope it would allow me to browse directly to the "Images" folder within the "Media" folder when inserting images into articles for example, but it didn't seem to work.

    Have I misunderstood the purpose of this attribute?

    Also could you explain what the "Allow Fuzzy Match" checkbox is for? What is "Fuzzy Matching"?

    It seems that some of the "New" documentation assumes the reader already knows almost everything about EzPublish, but for those of us who are new to EzP (or the concept of CMS) the under exemplified descriptions on some pages equate to quite a lot of time wasting searching for the answers elsewhere.

    I'm not asking for a bible and I'm not having a dig at all of the hard work that has gone into this documentation, I just think some more enlightened examples and descriptions would make EzP far more user friendly. On that note I think for the best part you are doing a great job on the Docs.

    Cheers!
  • INI-based limitations with browse selection method

    If you choose the selection method "browse", you can configure which browse type has to be used with an undocumented setting in content.ini:
    [ObjectRelationDataTypeSettings]
    ClassAttributeStartNode[]
    ClassAttributeStartNode[]=240;AddRelatedImageToDataType
    


    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, AddRelatedObjectToDataType is used.

    The Object relation list datatype uses the same settings, but the default browse type is AddRelatedObjectListToDataType.