So, I finally figured out and fixed the problem. The secret is to ensure that the default module, controller and action names are the same in the routes definition AND in the navigation definition.
Please see my corrected routes.xml: http://pastie.org/497666 And my corrected navigation.xml http://pastie.org/497665 My original routes.xml and navigation.xml lead to Tx_Navigation_Page_Mvc::isActive() returning false, when it should have returned true. The navigation helpers need to know whether a path isActive() or not. I hope this information can assist someone! On reading the archives to this list, one common mis-understanding is that to display all breadcrumbs at all depths, you have to setMinDepth(0): echo $this->navigation()->breadcrumbs()->setMinDepth(0); If your breadcrumbs are not showing up, try this first :-) Jonathan Maron On Mon, Jun 1, 2009 at 7:56 AM, Jonathan Maron <[email protected]> wrote: > I have a particular problem with the breadcrumbs view helper. > > First of all, I render the breadcrumbs with: > > echo $this->navigation()->breadcrumbs()->setMinDepth(0); > > and the menu with: > > echo $this->navigation()->menu()->setMinDepth(0); > > Secondly, here is some information to the setup: > > This is my 'naviation.xml' file: http://pastie.org/496270 > > (The additional meta* tags are used for the page's meta data.) > > The 'navigation.xml' file is loaded in the bootstrap class: > http://pastie.org/496271 > > 'Tx_Navigation_Page_Mvc' simply places a locale at the beginning of > the path: http://pastie.org/496272 > > This is my 'routes.xml' that feeds in the locale: http://pastie.org/496276 > > The output of: > > echo $this->escape($this->navigation()->sitemap()->setFormatOutput(true)); > > correctly shows the structure of the web site (with the locale in > first position): http://pastie.org/496273 > > The menu looks like that: > > + HOME > + Module > + Controller > + Action > > At the deepest level, the breadcrumbs look like this: > > HOME > Module > Controller > Action > > At the second to deepest level, the breadcrumbs look like this: > > HOME > Module > Controller > > However - and this is the problem - at one level lower and root level, > the breadcrumbs disappear entirely > > The expected result is: > > HOME > Module > > and > > HOME > > respectively. > > How can I get $this->navigation()->breadcrumbs() to return the Root > and Module level? > > I am using ZF 1.8.2. > > Thank you in advance. > > Jonathan Maron >
