eZpedia : The Free eZ Publish CMS Documentation Encyclopedia

Snippet: PHP Snippet Hiding or unhiding subtrees

About

eZ Publish content object tree node visibility can be changed.

Example code

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

References

Article provided by eZpedia

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

Powered by eZ Publish 6.0.2stable

Hosted by USA eZ Publish Community Partner : Brookins Consulting