Closed (fixed)
Project:
Custom Breadcrumbs
Version:
6.x-1.5
Component:
custom_breadcrumbs
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Dec 2009 at 11:56 UTC
Updated:
2 Jan 2010 at 02:50 UTC
hi all,
I don't know what I'm doing wrong in this module. I simply want to add breadcrumbs for one type of nodes, created by CCK module - it's called 'Galeria', for this I want to add a breadcrumb called 'Galerie' and path 'www.example.com/galerie' where I have a view with list of 'Galeria' type nodes. I create a custom breadcrumb as shows an attached image, but after saving nothing show up in 'Galeria' nodes, there is only a 'Home' breadcrumb as before.
I tried to clear theme cache and also my browsers cache and still nothing.
I'm using drupal 6.14
Please help
| Comment | File | Size | Author |
|---|---|---|---|
| custom_breadcrumbs_edit.jpg | 52.13 KB | yachuu |
Comments
Comment #1
yachuu commentedI figured out that this is some sort of problem with my theme called Energetic
now I try to solve the problem...
Comment #2
yachuu commentedok, i found the solution:
energetic theme use following function to get $breadcrumb variable:
problem is with function menu_get_active_breadcrumb();
when I comment this line custom breadcrumbs start working
so I think this function do not use custom breadcrumb module settings - I don't know it's proper situation, maybe energetic theme creators make mistake using this function, do they?
close this issue if you want to
Comment #3
MGN commentedYou are correct, menu_get_active_breadcrumb() sets the breadcrumb based on the (menu) active trail and custom breadcrumbs 6.x-1.x does not set the active trail.
Custom breadcrumbs uses drupal_set_breadcrumb to set the breadcrumb. Themes can then use drupal_get_breadcrumb to retrieve the breadcrumb and format/display it.
Try replacing menu_get_active_breadcrumb() with drupal_get_breadcrumb() and see if it works correctly.
Note that drupal_get_breadcrumb() falls back to menu_get_active_breadcrumb() if the breadcrumb has not been set with drupal_set_breadcrumb(), so *I think* it ought to work as the theme developers intended - but I am not sure about this.
Comment #4
MGN commentedComment #5
MGN commentedMarking this as fixed, since the question was answered.