I have the following Zend_Navigation config
-Item1
-Item2
|---SubItem2 1
|---SubItem2 2
|---SubItem2 3 (Visible = false)
-Item3
|---SubItem3 1
|---SubItem3 2
-Item4
|---SubItem4 1
Now, in application, whenever the user is on SubItems (visible = true), the submenu renders correctly. But whenever the user is on invisibale page like "SubItem2 3". The submenu does not render.
I can render the breadcrumbs by doing setRenderInvisible() and it works.
I was not able to render the submenu.
Following is the code I use to render the menu and sub-menu.
It is in the layout file.
<div id="top-nav-menu">
<?php echo $this->navigation()->menu()->setMaxDepth(0)->setUlClass('topNav'); ?>
</div>
<div class="clear"></div>
<div id="sub-nav-menu">
<?php echo $this->navigation()->menu()->setMaxDepth(1)->setMinDepth(1)->setOnlyActiveBranch(true)->setUlClass('subNav') ; ?>
<p style="display:inline;"> </p>
</div>
Any information/pointers are appreciated.
Thanks,