Wondering if someone could help me with a breadcrumbs/paths issue in drupal 5. Just spent the last 3 hours trying to fix it without success.

Background:

  • Have a section called 'From the field' (created using page content type). Added this to primary links menu. Menu link and page are both named 'from-the-field'
  • Have a view built using a 'story' content type. Added as the first menu item under 'From the field'. Url of the view is 'stories'
  • Have a view built using a 'case study' content type. Added as the second menu item under 'From the field'. Url of the view is 'case-studies;
  • Have nodes using 'story' and 'case study' content types. These are aliased using the pathauto pattern 'stories/[title-raw]' and 'case-studies/[title-raw]' respectively. Having the pattern as '[type]/[title-raw] would create aliases like 'story/title-of-story' instead of 'stories/title-of-story'.

The problem:
When I am at www.domain.com/from-the-field/stories, the navigation menu is expanded (as it should be), the active menu link is highlighted and the breadcrumbs show as Home >> From the field. The views page itself correctly lists the teaser views of content created with the 'story' node type

However, when I shift to the node view (path is www.domain.com/stories/title-of-story), the navigation menu for this sub-section collapses and the breadcrumbs disappear completely, with only the 'Home' breadcrumb link showing.

I experimented by changing the views urls to 'from-the-field/stories' and 'from-the-field/case-studies' and adjusting the pathauto patterns accordingly. This time too, the aliased paths were okay (path was now www.domain.com/from-the-field/stories/title-of-story), but on that path too, the menu for this section was collapsed and there was just the 'Home' breadcrumb link.

I have tried the custom breadcrumbs module without success to fix the breadcrumbs issue, but broken breadcrumbs are only one part of the problem.

I will gladly donate $50 to the person who helps me crack this challenge, ideally without using custom php code. Also, ideally, I would like to donate this to the drupal association, if the person is willing.

Comments

venkat-rk’s picture

Okay, after about 8 hours of searching, installing and testing, the node_breadcrumb module finally did the trick.

It solved the two problems I had: breadcrumbs not generated/matching the menu paths and urls and the navigation menu block collapsing when it had to display expanded to match the url paths. All I had to was to enable the module, enable the content type and point to the menu item which pointed to an aliased url for that content type node or view. The module helped solved my problem in less than 2 minutes.

A big thank you to the author of the module and to drupalmodules.com (through which I found this module).

To anyone else suffering similarly, the best part of this module is that it works even when your url straddles different content types. None of the other breadcrumb module solutions for drupal 5.0 do this, as I learned in testing.

In my case, I had the landing page for a section using the page module, the first argument was a url for a view for a CCK content type and the next was the aliased title for a node created with that content type. Something like this: www.domain.com/from-the-field[page-title]/story[cck-content-type]/title[.... The module displayed the entire breadcrumb trail nicely even on the node (story) view and without collapsing the corresponding sub-menu links in the menu block.

Hope this will help someone.