Some functions on this portal require JavaScript but your browser does not support it or it has been disabled.
Skip to main content
Monday 23 January 2006 2:26:51 am - 5 replies
Ł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.
ThanksJulien
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.
CheersBruce
My Blog: http://www.stuffandcontent.com/ Follow me on twitter: http://twitter.com/brucemorrison Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish
Sunday 11 February 2007 9:58:57 pm
Hi Bruce,
Many thanks !
Good webdev ;-)
You must be logged in to post messages in this topic!