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

Reply via email to