Download & Extend

Breadcrumb Path Not Working on Taxonomy Pages

Project:Taxonomy Breadcrumb
Version:6.x-1.x-dev
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Hi, I hope I explain this well enough for someone to help!

I have taxonomy terms setup and for each term I have added Breadcrumb path (taxonomy_breadcrumb) to direct to a node I have setup for each term, apart from the lowest taxonomy term. I'll try and explain better. Let's say I have 4 taxonomy terms (dashes show parent/child):

Nike: Breadcrumb path directed from taxonomy/term/1 to node path 'nike'
-Trainers: Breadcrumb path directed from taxonomy/term/2 to node path 'nike-trainers'
-T shirt: Breadcrumb path directed from taxonomy/term/3 to node path 'nike-t-shirt'
--Grey Hat: NO Breadcrumb path direct, but changed URL alias to 'grey-hat'

The breadcrumb works fine on all nodes (Nike, Trainers, T shirt) but on the taxonomy term page (Grey Hat) the breadcrumbs direct to the original taxonomy paths of its parent (taxonomy/term/2 and taxonomy/term/3)

Is there a way I can correct this to direct to the breadcrumb paths I have setup?

Thanks for any help.

Comments

#1

Please tell me what you mean by

breadcrumb path directed from 'taxonomy/term/1 to node path 'nike'

.

and also

The breadcrumb works fine on all nodes (Nike, Trainers, T shirt) but on the taxonomy term page (Grey Hat) the breadcrumbs direct to the original taxonomy paths of its parent (taxonomy/term/2 and taxonomy/term/3)

Just want to make sure I understand. As you have said, all of these are terms, not nodes. I assume you mean that the crumb works as expected when you are viewing a node page for a node type that is tied to these vocabulary terms?

Also, your description sounds inconsistent. You say you have set a Breadcrumb path for each term, but then for the Gray Hat term you say "no breadcrumb path direct, but changed url alias." Since you can't do url aliases with the taxonomy breadcrumb module, I assume you are telling me that you set that at administer>> site building>>URL aliases?

I am not sure I understand, but I'll take a stab at it anyway...

If you want the breadcrumb link for the term "Nike" to be the path "nike", then you would enter "nike" in the Breadcrumb path on the Nike taxonomy edit term form.

Assuming this is what you are doing, and you have left the Breadcrumb path (taxonomy_breadcrumb) blank for the Grey Hat term, then the breadcrumb path should be:

Home > Nike > T shirt > Gray Hat

With links of nike, nike-t-shirt, and taxonomy/term/xxx for Nike, T shirt, and Gray Hat, respectively, where xxx is the term id for Gray Hat.

Now, clicking on the Gray Hat breadcrumb should take you to the taxonomy term page (taxonomy/term/xxx) and the breadcrumb should be the same, except Gray Hat will no longer be linked - just the text 'Gray Hat' should appear in the breadcrumb. The other terms should have the same links as they did on the node page.

I've set up your example on my test site and this is the (correct) behavior that I see. Please let me know if I am getting your question right. Also, can tell me more exactly how you have this vocabulary configured? Do you have a breadcrumb path for the vocabulary? Is it multiple select ?

Also are there any other modules enabled that modify the breadcrumb?

#2

Status:active» postponed (maintainer needs more info)

#3

Status:postponed (maintainer needs more info)» active

Hi, sorry I'll try and explain better...

I have a vocabulary set up called "Nike" which is not multiple select and does not have a breadcrumb path configured. Inside this vocabulary I have 4 terms:

-Nike (taxonomy/term/2)
--Trainers (taxonomy/term/3)
--T shirt (taxonomy/term/4)
---Gray hat (taxonomy/term/5)

I have tied the first 3 terms in the list above to node pages by creating a node for each term and changing the breadcrumb path on the taxonomy edit term form like so (path is in brackets):

-Nike (nike)
--Trainers (trainers)
--T shirt (t-shirt)

The "Gray hat" term does not have a node tied to it so it is the default taxonomy page type. All I have done is changed the alias (at administer>>site building>>URL aliases) from "taxonomy/term/5" to "gray-hat".

So I have a breadcrumb like this:

Home > Nike > T shirt > Gray hat

When I'm viewing the "Nike" and "T shirt" pages the breadcrumbs format correctly and link to the paths I have set up, so the "Nike" breadcrumb links to mysite.com/nike and the "T shirt" breadcrumb links to mysite.com/t-shirt.

However, when viewing the "Gray hat" page, the breadcrumb for "Nike" links to mysite.com/taxonomy/term/2 and the breadcrumb for "T shirt" links to mysite.com/taxonomy/term/4.

Also, when I create a node and categorize it under the "Gray Hat" taxonomy term, when viewing the node the paths are correct, so "Nike" links to mysite.com/nike, "T shirt" links to mysite.com/t-shirt and "Gray hat" links to mysite.com/gray-hat. The problem only appears on the taxonomy page called "Gray hat".

I can't think of any other module I'm using that affects the breadcrumbs.

I hope this is a bit clearer, please let me know if it's not. Thanks again for your help.

#4

Sorry, I've tried but I cannot reproduce this. Your explanation is very clear (thanks), and I followed all the steps. But the breadcrumb links are correct whether I am on a node or a taxonomy term page. I will leave this as an active issue and keep watching for strange behavior like this. Also, you might just want to make sure you have the latest 6.x-1.x-dev (updated january 28th).

If someone else can try to reproduce this, perhaps we can track down the problem....

#5

Ok, thanks for looking into this. If you want a quick look at my site let me know and I'll PM you the site and access details.

Thanks again for your help.

#6

Status:active» closed (fixed)

Closing this issue, since its been a year. If its still a problem in the current code, reopen and we can have another look.