On Tuesday 01 Feb 2011 10:15:23 Derk wrote:
> Hello,
> 
> I’m playing with Zend_Navigation. I have a menu of two levels. The top
> level has 5 pages and each page has 3 or 4 subpages. Now I want to render
> a menu with the top level and the submenu for the active page only. Is
> this supported by the menu view helper?
> 
> Thanks.

Hi Derk,

Use these options for your menu creation:
array(
  'minDepth' => 1,
  'onlyActiveBranch' => true,
  'renderParents' => false
)

This will give you the correct submenu. I explained more about this at my blog 
[1].

Regards, Jurian

[1] http://juriansluiman.nl/en/article/109/tips-and-trics-for-
zend_navigation#create-submenus-with-subpage-only
-- 
Jurian Sluiman
Soflomo - http://soflomo.com

Reply via email to