Getting the node id from an object id

Author Message

Nicolas R

Friday 20 February 2009 5:02:21 am

Hello,

How can I get the node id by an object id ?
Thank you

André R.

Friday 20 February 2009 5:04:57 am

main_node_id / assigned_nodes:
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/objects/ezcontentobject

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

Nicolas R

Friday 20 February 2009 6:31:23 am

The main node id is not set ! Is it normal ?

André R.

Friday 20 February 2009 7:43:25 am

Depends, does it have any assigned nodes at all?
If not then it is ok, it means the object doesn't have any placement, but if it has nodes then it is a inconsistency* and you can fix it by setting main node in admin.

* One such where discovered in swap node code recently and fixed in 4.0.4 / 4.1Beta1

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

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