Forums / Developer / publish a hide object
K C
Monday 17 October 2005 3:05:34 am
Hi,
for publishing my object I use :
include_once( 'lib/ezutils/classes/ezoperationhandler.php' ); $operationResult = eZOperationHandler::execute( 'content', 'publish', array( 'object_id' => $contentObjectID,'version' => $contentObjectVersion ) );
Now I want the first it runs that the content will be hidden in the contenttree (so the objects are still there, the user can unhide the object)
The $operationResult['status'] is now always 1, how can reset it to 3 (archived) ?
Thanks a lot,
KC
Monday 17 October 2005 6:24:38 am
Okay, I've found the answer :
eZContentObjectTreeNode::hideSubTree( $contentObject->attribute('main_node') );