Why remove link but not term if on a taxonomy/term page?
Standart - August 19, 2007 - 14:41
| Project: | Taxonomy Breadcrumb |
| Version: | 5.x-1.4 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hi!
I'm just wondering why there's no link anymore but still a breadcrumb term if we're on a taxonomy/term page. What is the use of this term?
I commented out the according line and it works as I expect it.
// Do not create links to own self if we are on a taxonomy/term page.
if ($is_term_page && $parent_term->tid == $tid) {
// $breadcrumb[] = $parent_term->name;
}
else {
$breadcrumb[] = l($parent_term->name, $term_path);
}
#1
Have you tried the latest version? Does that do what you want?
#2
As stated above I'm using 5.x-1.4. Is there a new version coming?
#3
My mistake, I was looking at the wrong version myself. I'm assuming unchecking the 'Show current term in breadcrumb trail?' option wasn't what you wanted?
#4
Looks like it's another instance of the age-old debate
"Why doesn't my breadcrumb trail show where I am now?"
"OK, now why doesn't it link?" (the answer is "where to?")
Both sides have merit. Sounds like the option is available anyway ... so you can choose.
#5
I do use the "Show current term in breadcrumb trail?" option. When I'm on a story node that's part of a term I want the term to appear in the breadcrumbs. If I'm on the taxonomy page listing all the stories for a term and don't want the term to be part of the breadcrumbs because there a heading with the same content right beneath it. So I still do not understand this part of the code (see quote above) that contains the right switch (if on taxonomy page) but still shows the term, only without a link. I want it to disappear completely on these pages.