When I started using Drupal, one of the the things I did to ensure that breadcrumbs and site URLs would match up was to have a taxonomy term for certain pages (which were top-level in their particular categories). However, that has been causing some problems down the road - some pages could belong in multiple categories, and it was also bloating out the list of terms on the pages where one can be selected.

Recently, however, I've noticed that the use of the Custom Breadcrumb module might work much better here...but, for some reason, I can't get it to work - even after setting titles and paths for a particular content type, the breadcrumb remains the same for them, as if nothing had changed.

Here's an example of what I'm trying to do:

I have a content type called "Job Opportunities", and its path is "job-opportunities". Pages created with this content type will have their title appended after the path, so if one were titled "Example Job", its path would be "job-opportunities/example-job".

A custom breadcrumb was created for the "Job Opportunities" content type - I set the titles (one on each line) to:

  • Job Opportunities
  • [title]

And the paths to:

  • job-opportunities
  • job-opportunities/[title]

Followed by saving the settings for that custom breadcrumb. After doing that, the breadcrumb for that page should have been displayed as "Job Opportunities" (which would also link to that page), followed by a double-arrow separator and then the page's title (in this case, "Example Job").

When I visited that page, however, the breadcrumb remained unchanged - it only showed "Example Job" there. Editing and saving the page (without making any changes to it) also had no effect on this.

Thank you for any help you can provide in regard to this issue.

Comments

aajones’s picture

Do you have other breadcrumb-generating modules enabled? If so, they might have a higher weight than custom breadcrumbs. See http://drupal.org/node/44145

Wolfey’s picture

Aside from Custom Breadcrumbs, the only other breadcrumb-modifying module I'm using is Taxonomy Breadcrumb.

As for setting the weight of a module: Before I try that, is there any way to see what each module's weight is set to (preferably using phpMyAdmin)? I don't want to end up changing the weight for the Custom Breadcrumbs module and cause problems elsewhere else on the site because of that...

aajones’s picture

Using phpMyAdmin, look at your drupal database, and then at the system table. Your modules will start with filename 'module/' . Look for any breadcrumb-generating modules, and look at their weights.

Wolfey’s picture

I wasn't sure where to look beforehand, but you told me exactly what I needed to know - thank you! =)

Of the modules I had installed, the ones with a weight greater than zero (regardless of whether or not they could modify breadcrumbs) were:

  • Devel (88)
  • Diff (1)
  • Contemplate (10)
  • Taxonomy Breadcrumb (10)
  • Token (10)
  • Views (10)

Changing the weight for Custom Breadcrumbs to 1 didn't work, but changing it to 89 did. I could've stopped there since it was working now, but I wanted to see which module in particular was causing the problem. Though it was pretty obvious as to which one that would be, I wanted to rule out any possibility of another module also being responsible for this issue.

I then changed the weight for Custom Breadcrumbs to 11 and it still worked, which ruled out Devel. After that, I changed it to 10 and it stopped working again, which ruled out Diff - and meant one of the four remaining modules which also had a weight of 10 was causing the issue. As you mentioned, it was probably a breadcrumb-modifying module which would be causing the problem, and the only module in the list which could do that is Taxonomy Breadcrumb. After I set that module's weight to 9, Custom Breadcrumbs worked again...which meant that Taxonomy Breadcrumb's weight was what had been causing the problem here.

Again, thank you for your help =)

Sivert Almvik’s picture

Thanks for the info =)

Will this have to be set every time the core modules or other modules are updated?

--
Sivert Almvik
Dokumentar[kolon]
Tidsskrift av og for Filminteresserte (TAFFI)
Drupal i Norge (DiN)

Wolfey’s picture

(Sorry for the late reply - I didn't even see it until now.)

From what I have seen, once the weight is set for a module, it stays that way - any updates that I have applied to modules did not change their weight.

yopyop’s picture

For me, with a fresh version of Drupal 5.7, Custom Breadcrumb 5.x-1.2, Views 5.x-1.6, Token 5.x-1.10, Pathauto 5.x-2.0 and Node Heirarchy Views 5.x-1.x-dev I was not getting Custom Breadcrumbs to show up at all for a simple view of a node type ("Action Alerts")

After reading this, and setting the weight of Custom Breadcrumbto 11 and then down to 1, it worked.

thanks!