Posted by feuillet on June 15, 2010 at 11:12am
5 followers
Jump to:
| Project: | Taxonomy Breadcrumb |
| Version: | 6.x-1.1 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | sdfasdfsdfasfasdfsadfasfasdfadsf |
| Status: | active |
Issue Summary
Hi,
I expierience the following problem:
I have the following hierarchical vocabulary setup:
Term 1
- Term 2
- Term 3
The breadcrumb of my particular problem page (Term 2 Page) has to be:
Home -> Area -> Term 1 -> Term 2 (active)
But at the moment, its repeating Term 1 in the Breadcrumb at the end:
Home -> Area -> Term 1 -> Term 2 (active) -> Term 1
I use taxonomy_menu to insert the Terms into the Navigation Menu. For the output, i use menu_breadcrumb. I have no idea why this is happening. It happens at every Vocabulary (i use 4 different ones) and at no of them, Term 1 is used multiple times...
Does anyone have an idea why this could be happening?
Best Regards,
Sandro
Comments
#1
Hello,
I have the same problem too.
For example, Home › Consumer Electronics › Consumer Electronics
Although it should be Home › Consumer Electronics (active) › Microwaveoven
I only use Taxonomy Menu and Taxonomy Manager modules.
Could anyone answer how to fix the problem.
#2
Subscribing
#3
This isn't a proper fix, but since I don't have time to debug it currently I can offer a workaround that isn't too compromising. You can override the breadcrumb theme function to remove the duplicate entries as follows:
1) make sure that your duplicate breadcrumb links are the same i.e. not some with title attributes, some without. Just view source and see if you have them e.g. <a href="foo" title="foofoo">foobar</a> They can be removed in the standard menu settings from site administration.
2) edit your theme's breadcrumb function, you should be able to find one in template.php called themename_breadcrumb(), add this under the opening brace:
$breadcrumb = array_unique( $breadcrumb );
I should point out I am using Menu Breadcrumb not Taxonomy Breadcrumb.
#4
Is there a solution for this duplicate trail for Drupal 7.
Anyone?