On Wednesday 11 May 2011 06:03:34 Hector Virgen wrote:
> Have you tried using setOnlyActiveBranch()?
> 
> echo $this->navigation()->menu()->setOnlyActiveBranch(true)->menu();
> 
> --
> *Hector Virgen*
> Sr. Web Developer
> http://www.virgentech.com

Hi Hector,

The setOnlyActiveBranch will not display the whole menu on 2nd level if you 
visit the 3rd level of pages (thus only the 2nd level page which is the 3rd 
level page you visit).

I solved the problem by a frontcontroller plugin which sets subpages to 
visible when a 2nd level page or 3rd level page is visited. It is an extreme 
custom made solution, but unfortunately the only option I found. By default, 
3rd level pages are invisible and become visible by the plugin's activation. I 
have posted the code here: http://pastie.org/1888160

An example of my use case (in Dutch only): http://innogration.soflomo.com. You 
can visit the sitemap to see the structure 
http://innogration.soflomo.com/nl/sitemap.

Regards, Jurian
-- 
Jurian Sluiman
Soflomo - http://soflomo.com

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to