Closed (fixed)
Project:
Taxonomy context
Version:
master
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
8 Oct 2004 at 19:55 UTC
Updated:
26 Feb 2009 at 17:19 UTC
Jump to comment: Most recent file
After installing taxonomy_context, I found that the breadcrumbs trail on the top of the page (e.g. Home >> Places >> Africa >> Egypt) is not visible anymore.
Why does taxonomy_context do that? It should not disabled such a useful feature.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | taxonomy_context-breadcrumb-patch.txt | 991 bytes | kbahey |
Comments
Comment #1
kbahey commentedHer is a comparison of the HTML source before the taxonomy_context module, and after it:
Before:
After:
Comment #2
nedjoI've removed the drupal_set_breadcrumb call (which I think worked in 4.4 but apparently isn't needed now).
Comment #3
kbahey commentedHi
Thanks for responding.
I did some debugging on your code. I reenabled the commented part about breadcrumbs.
The issue is not with the code in the taxonomy_context_get_breadcrumb() function, but rather the call to this function from taxonomy_context_init(). $context->tid is set to nothing, and therefore taxonomy_context_get_breadcrumb() returns nothing.
I am not sure where this $context->tid should be set from, but that is the cause of the problem where breadcrumbs are not displayed.
Comment #4
kbahey commentedChanging status to active.
Even after commenting out this section, the breadcrumbs are not displayed by Drupal.
Comment #5
kbahey commentedClarification:
The breadcrumbs do show when you are on a taxonomy, but do not get displayed when you are on a node.
So if you are on a term, and listing all the child nodes under it, the breadcrumbs will show (from Drupal, not from taxonomy_context). But of you click on a term, Drupal will not show any breadcrumbs about the node (only Home).
I don't think this is a problem with taxonomy_context itself, but why does the breadcrumb not show??
Comment #6
(not verified) commentedThere is a bug in the module.
function taxonomy_context_init() {
[snip]
// Commented out in response to issue http://drupal.org/node/11407
if (($mode == "taxonomy") || ($node_type == "story") || ($node_type == "page")) {
drupal_set_breadcrumb(taxonomy_context_get_breadcrumb($context->tid));
}
}
The problem with the commented code is that there is no $context defined here. If you add this line:
$context=taxonomy_context_get_context();
right before the if statement
and you uncomment the rest, the module works brilliantly!
Comment #7
kbahey commentedPatch for making breadcrumbs appear when using taxonomy_context.
Nedjo, can you please incorporated into CVS.
Comment #8
nancydruReopen this with a current release if it is still valid.