AFAIK there is currently no option supporting this behavior.
Custom helper is a good choice.

The simplest solution is to hide items which you do not need with CSS.
You can also use custom partial to display the menu.

-- 
reagards
takeshin


u.kayani wrote:
> 
> I`m trying to use Zend Navigation to set up a simple menu system
> for example
> 
> Item 1
> Item 2
> --SubItem1
> --SubItem2
> Item3
> Item4
> 
> When i do the regular rendering of the menu ie.. 
> $view->navigation()->menu()
> It always renders the sub-items even if Item2 is not active. What I want
> is to render sub-items for only the menu item which is active ie. when
> Item 2 is the active page we see it`s sub items as well.
> I tried the option onlyActiveBranch but this only renders the active
> branch and nothing else.
> Does anyone have any ideas? do i have to extend the navigational menu view
> helper
> Any help would be appreciated.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Zend-Navigation---how-to-render-submenus-for-only-active-item-tp24929449p24937599.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to