Object relation types

Object relation types

Wednesday 07 July 2010 2:54:01 am - 2 replies

Author Message

André R.

Wednesday 07 July 2010 8:28:24 am

That's probably beacuse it does not fetch the relations for you, just provide meta information about the relation.

Use fetch function to fetch them in the order you want for instance:

http://ez.no/doc/ez_publish/technical_manual/4_x/reference/modules/content/fetch_functions/related_objects

Pay attention to "all_relations":

 The "all_relations" parameter makes it possible to fetch all types of relations (when set to TRUE).
This parameter is not required and the default value is FALSE.
In addition, the value of this parameter can also be an array.
The array may consist of the following strings: "common", "xml_link", "xml_embed" and "attribute"

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Kévin S.

Wednesday 07 July 2010 9:04:45 am

Oh, OK thank you !

Could you give an example of use of each relation (attribute, children and common) ?

I can't choose between them, they all seem to be technically the same...

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.