Share » Forums » Developer » Fetching ID of a created content node

Fetching ID of a created content node

Fetching ID of a created content node

Thursday 01 March 2007 8:13:25 am - 3 replies

Author Message

Claudia Kosny

Thursday 01 March 2007 8:26:55 am

Hi

As far as I know the node id does not exist before the folderContentObject is published. After publishing you can get it with

$folderContentObject->attribute('main_node_id');

Claudia

Ville Mattila

Thursday 01 March 2007 8:56:55 am

Thanks Claudia, this solution works fine!

A further question is that if I want to place an object to multiple locations, should I do anything else that just add a nodeAssignment for each location with proper parent_node property?

Ville

Claudia Kosny

Thursday 01 March 2007 10:44:08 am

Hi Ville

As long as you add the node assignments before publishing and set 'is_main' to 0 for them, it should be ok.

Claudia

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

36 542 Users on board!

Forums menu