eZpedia : The Free eZ Publish CMS Documentation Encyclopedia

Adding Path information

Table of contents:

The $Result['path'] should be created like this to work proper with the treemenu operator:

$Result['node_id'] = 4711;
$Result['path'] = array(
    array( 'url' => '/content/view/full/2', 'node_id' => 2, 'text' => 'Home', url_alias => '' ),
    array( 'url' => '/content/view/full/100', 'node_id' => 100, 'text' => 'Something100', url_alias => '/something100' ),
    array( 'url' => '/content/view/full/200', 'node_id' => 200, 'text' => 'Something200', url_alias => '/something100/something200' ),
    array( 'url' => false, 'node_id' => 4711, 'text' => 'Something 4711', url_alias => false )
);</pre>

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