|
|
Hi,
I have a navigation container, having a custom properly set to 1
for some of them and for rest not been set.
I am trying to render two menus based on the container. First
menu would have all the pages containing that custom property,
and the second one all the root pages, no matter if tagged with
that custom property,
//first menu
$topMenuContainer = new Zend_Navigation();
$topMenuContainer->addPages(
$this->navigation()->findBy('top', '1', true) );
echo
$this->navigation()->menu()->renderMenu($topMenuContainer,
array('maxDepth'=>0));
//secondmenu
echo $this->navigation()->menu()->renderMenu(null,
array('maxDepth'=>0));
The first menu is rendered properly, but the second menu has
only the elements not tagged with 'top' property.
Is this normal behavior or is a bug ?
Cristian
|