Just to make this clear: object_id is the ID of the object. node_id is the ID of one of the nodes of an object. A node is a placement in the content tree.
When you view an object, you view it from a certain location (placement), so the number after /content/view/full/ is the node id. When editing an object, the nodes are irrelevant, so the number after /content/edit/ is the object id.
You can not specify node ids, the system does that. How to find the node id of a given node? Look at the link, the node id is the number after /content/view/full/.
Nodes are assigned whenever you specify locations for an object.
I'm having some trouble with the object_id / node_id thing.
I'm building a PHP extension which needs to retreive those objects which are parents of a particular content object. The parent_nodes attribute gives me a list of their node_id's, but the eZContentObject::fetch function which I need to use to retrieve the content of these objects requires object_ids.
Is there anyway to use eZContentObject::fetch or something similar with node_ids instead, or is there some way to map node_ids to object_ids?
Any help would be much appreciated - thanks! - Chris
Glad I slept on this. I've just made a bit of a breakthrough in understanding how this works.
I was using eZContentObject::fetch($object_id) but I didn't realise I could use eZContentObjectTreeNode::fetch($node_id) to get straight to the requried node. You can then retreive the associated content object id using: