eZpedia : The Free eZ Publish CMS Documentation Encyclopedia

Snippets for eZ publish 3: Hiding or unhiding subtrees

This is compatible with eZ Publish 3.

Example code

if ( $node->attribute( 'can_hide' ) )
{
    if ( $node->attribute( 'is_hidden' ) )
    {
        eZContentObjectTreeNode::unhideSubTree( $node );
    }
    else
    {
        eZContentObjectTreeNode::hideSubTree( $node );
    }
}

Article provided by eZpedia

All text is available under the terms of the GNU Free Documentation License

Powered by eZ Publish Community Project 4.2011

Hosted by Swiss eZ Publish partner YMC