Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I have a hiearchical taxonomy in place with taxonomy breadcrumb.
I have breadcrumbs like this:
Home > World > Europe etc etc
If I enable Taxonomy Context, it duplicates the top level term and displays a list of terms like this
Home > World > World > Europe etc etc
I would like to turn this feature off, as I dont need it.
How can I do it?
Comment | File | Size | Author |
---|---|---|---|
#4 | taxonomy_context_patchv2.txt | 917 bytes | lonehorseend |
Comments
Comment #1
giorgio79 CreditAttribution: giorgio79 commentedIt seems this is caused by the Taxonomy Breadcrumb module and Taxonomy Context both outputting breadcrumbs...
I would like to stick with the Taxonomy Breadcrumb module as it uses pathauto urls. Is there anyway to disable breadcrumb in taxonomy context?
Comment #2
giorgio79 CreditAttribution: giorgio79 commentedI solved this with commenting out the
drupal_set_breadcrumb
function calls in the module file
It would be nice if the breadcrumb enable/disable could be controlled from admin
Comment #3
Fayna CreditAttribution: Fayna commentedYou can disable Taxonomy Context's breadcrumbs but it's on a per content type basis. Edit a content type and look near the top, there should be a collapsible "Taxonomy Context" section. It should have two options, "Disable taxonomy inline" and "Show taxonomy breadcrumb."
I'm using the latest -dev version and I see this.
Comment #4
lonehorseend CreditAttribution: lonehorseend commentedIt sounds like you have a multiple hierarchy situation. I did too and yes, it messed up the breadcrumbs until I put this patch in place. It checks the hierarchy status of the vocabulary and if it is multiple, it will look at the parents of the term instead of parents_all and then take the first parent (the one with the lowest weight) and base the parents_all (breadcrumb trail) off of that one.
Update - 06/28/08 - The code now adds the last term for the node.
Comment #5
giorgio79 CreditAttribution: giorgio79 commentedThanks Guys.
Fayna: I have those options too in the content type setup and they are all set to disabled, still my problem stands.
lonehorseend: Thanks I will try the patch, but my taxonomy is a single location hierarchy. There can be only one parent for one term.
For now I still have drupal_set_breadcrumb uncommented, given there is already another module for taxonomy breadcrumb it could be an option to leave it out too from this on to increase focus :)
Comment #6
lonehorseend CreditAttribution: lonehorseend commentedDon't worry about applying the patch then. It has an if then else statement that looks specifically for the multiple hierarchy situation. If it doesn't find it, then it uses the default behavior.
Comment #7
najibx CreditAttribution: najibx commentedonly for anonymous user with Caching mode: Normal. (it's ok, if cache mode is None or authenticated user)
Same inb #2, I solved this with commenting out the drupal_set_breadcrumb.
Something is wrong there ...