Share » Forums » Developer » Tree Node Assignment

Tree Node Assignment

Tree Node Assignment

Monday 23 January 2006 2:26:51 am - 5 replies

Author Message

Łukasz Serwatka

Monday 23 January 2006 3:24:49 am

It looks like your code is missing with at the end:

include_once( 'lib/ezutils/classes/ezoperationhandler.php' );
...
...
//publish new object
 $operationResult = eZOperationHandler::execute( 'content', 'publish', array( 'object_id' => $customer->attribute( 'id' ),
'version' => 1 ) );

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Julien Fieutelot

Monday 23 January 2006 4:48:51 am

It works fine now.

Thanks
Julien

Sébastien Antoniotti

Sunday 11 February 2007 12:42:55 pm

Hi,

I'm using your code, all is right, but I need to know the node_id of the node added precedently. Is there any way to do this ?

eZ Publish Freelance
web : http://www.webaxis.fr

Bruce Morrison

Sunday 11 February 2007 3:29:22 pm

Hi Sébastien

Adding

$nodeID = $customer->attribute('main_node_id');

after the end will do the trick.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Sébastien Antoniotti

Sunday 11 February 2007 9:58:57 pm

Hi Bruce,

Many thanks !

Good webdev ;-)

eZ Publish Freelance
web : http://www.webaxis.fr

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

36 542 Users on board!

Forums menu