My breadcrumbs are always like this...

Home > Something

...even if "Something" is a child of another page in my menu at admin/build/menu-customize/menu-my-menu

For example, if I visit a page called "Apples", I have this breadcrumb...

Home > Apples

If I then visit a page called "Oranges" that is a child of Apples in my menu, I have this breadcrumb...

Home > Oranges

...instead of the desired...

Home > Apples > Oranges

In my template.php, I have this code...

function phptemplate_breadcrumb($breadcrumb) {
  if (!empty($breadcrumb)) {
    return implode(' › ', $breadcrumb);
  }
}

Is there anything wrong with that code? Some other config setting I need to look at?

Thanks,
Ryan

Comments

CleanCutRogue’s picture

Yeah - that's normal for Drupal. The breadcrumb, rather than listing the path you've chosen to get where you are, instead lists the path in the menu structure where you're at... kinda strange behavior, but it's how the breadcrumb works. I thought there was a module somewhere that changed that... anyone remember what it's called?

webcomm’s picture

I think you misread my post. The "normal" behavior you're describing is not what I'm getting. The breadcrumb is not conforming to the menu structure. The menu structure is like this...

--Apples
----Oranges
----Bananas
--Something
--Something else

Oranges and Bananas are definitely children of Apples in the menu structure. Yet if I go to the Oranges page, I get a breadcrumb like so...

Home > Oranges

What might I be doing wrong?

webcomm’s picture

looks like this is a duplicate of http://drupal.org/node/195876