Forums / Developer / fetch the choosen node of an object relation

fetch the choosen node of an object relation

Author Message

Andreas Adelsberger

Wednesday 19 December 2007 6:49:44 am

hi there, I need to fetch the choosen node of an object relation attribute.

as far is i looked into the content i can only find the main node and the assigned_nodes, but i need the node that i have choosen in my object relation attribute.

any hints? thanx andi

---------------------------------------
Styleflasher New Media OG
Websites. Games/Multimedia.

André R.

Wednesday 19 December 2007 1:32:26 pm

Object relations are object relations, not node relations. So you normally use the main_node_id of the object, or if you want to make sure it's the correct node assignment you can loop the assigned_nodes array and do some code on it.

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