publish a hide object

Author Message

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

K C

Monday 17 October 2005 6:24:38 am

Okay, I've found the answer :

eZContentObjectTreeNode::hideSubTree( $contentObject->attribute('main_node') );

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