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
Comment #1
sdfasdfsdfasfasdfsadfasfasdfadsf CreditAttribution: sdfasdfsdfasfasdfsadfasfasdfadsf commentedHello,
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.
Comment #2
ejolivet CreditAttribution: ejolivet commentedSubscribing
Comment #3
klaharris CreditAttribution: klaharris commentedThis 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.
Comment #4
pauleh CreditAttribution: pauleh commentedIs there a solution for this duplicate trail for Drupal 7.
Anyone?
Comment #5
ARUN AK CreditAttribution: ARUN AK commentedsame for me.
Comment #6
gisleThe Drupal 6 version is no longer supported. Closing this as outdated. If you think this is still relevant for Drupal 7 or Drupal 9, please open a new issue.