Friday 16 January 2004 12:14:46 pm
Wouldn't you be able to create a before publish workflow event and: ... etc etc etc
$nodeAssignment =& eZNodeAssignment::create(array('contentobject_id' => $contentObject->attribute('id'),
'contentobject_version' => $contentObject->attribute('current_version'),
'parent_node' => YOUR FOLDER ID,
'is_main' => 1)); $nodeAssignment->store(); .... etc etc etc
include_once('lib/ezutils/classes/ezoperationhandler.php');
$operationResult = eZOperationHandler::execute('content', 'publish', array('object_id' => $contentObjectID, 'version' => 1)); You would have control code above that to set the node assignment parent_id depending on the class of the object published. Or probably better is to create one event for each user class. Now that I think about it though. The workflow system might actually publish the object in its default location after this... not sure tho you will have to test?
Let me know
Regards, Willie
|