Friday 30 July 2004 2:29:07 am
Hi, Armed with a the id and version of an object as well as an array of parent nodes, I'm trying to assign nodes to the object after its creation (using a workflow set to trigger at content|publish|after). The code I'm using is the following:
$nodeAssignment =& eZNodeAssignment::create( array('contentobject_id' => $object['id'],
'contentobject_version' => $object['current_version'],
'parent_node' => $v,
'sort_field' => 2,
'sort_order' => 0,
'is_main' => 0));
$nodeAssignment->store();
However, it doesn't seem to work, neither do I get any errors in the DebugOutput. I have, of course, already made sure that the variables used are populated. Am I perhaps missing some code? Thanks in advance ! Sincerely,
Eirik Johansen http://www.netmaking.no/
Sincerely,
Eirik Alfstad Johansen
http://www.netmaking.no/
|