Move a node in a workflow

Author Message

Daniel Jüdel

Friday 22 April 2005 1:47:56 am

I have a problem with move a node. If I only move a node (not in workflow) there are no problems. But if I move a node in a workflow (trigger: content / after / publish) the nodeID will be changed. But the nodeID doesn't change in the workflow. The nodeID will be changed if I edit the content later.

The workflow has the following code in function execute():

$parameters = $process->attribute('parameter_list');
$objectID = $parameters['object_id'];
$object = eZContentObject::fetch($objectID);
$node = eZContentObjectTreeNode::fetch($object->attribute('main_node_id'));
$node->move(700);    // static for testing

Can anyone help?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.