Forums / Developer / Get the node id from a new content object?

Get the node id from a new content object?

Author Message

Nicklas Lundgren

Thursday 10 August 2006 6:29:50 am

Hi,

I am working on an import script. As part of the process, I need to get hold of the node id of a newly created and published content object.

Thus, I do have the contentObject, which I have runned the store() operation on.
This contentObject has also been published successfully by using the eZOperationHandler.

But now, I would like to know the node id of this newly created object.

Of course this must be possible. But how?

All help appreciated!

Best regards,
/Nicklas

Nicklas Lundgren, Managing Director
Novitell AB, Sweden

Nicklas Lundgren

Thursday 10 August 2006 7:02:33 am

Hi again,

No worries, I found it to be really easy:

$ContentObject->attribute('main_node_id')

Cheers,
/Nicklas

Nicklas Lundgren, Managing Director
Novitell AB, Sweden