| Project: | Taxonomy Breadcrumb |
| Version: | 5.x-1.4 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
I saw a support request for this before, but I have the latest version, and this is not working for me. Basically I am using taxonomy list and taxonomy image for a portfolio of work. I've made nodes that are basically an entry in the portfolio. I have a vocabulary called Portfolio Entry Types, and in there are elements like Business Identity, CD Covers, Advertisements, etc. When I click on the link to the taxonomy/vocabulary/vid page just having the Home breadcrumb is fine because it is basically a top level page, but then once I click on Business Identity, it goes to a page that lists all the portfolio items under that term, and it doesn't show 'Home -> Portfolio Entry Type'. When I then click on an item, it shows 'Home -> Portfolio Entry Type -> Business Identity' as it should.
It seems to me the fix for the similar support request should already be in the current version, but its not working for me...am I doing something wrong?
Thanks,
Stephanie
Comments
#1
Business Identity is term (the path is something like /taxonomy/term/1, unless it's been aliased to something else), right? Going to a term page should show the proper breadcrumb, unless another module is causing a conflict.
Temporarily disable all other Contributed modules (other than taxonomy_breadcrumb) and see if you get the desired behavior. Report back with your results. We'll take it from there.
#2
The Views module causes the problem. Currently using: 5.x-1.6-beta5
#3
I'd recommend submitting an issue and/or patch to the views module. Just looking quickly, I'd recommend something like this:
in the function views_set_breadcrumb($view)
check if the taxonomy_breadcrumb module is enabled AND check to see if it's on a taxonomy/term page. If both of those conditions are true execute:
$breadcrumb = taxonomy_breadcrumb_generate_breadcrumb($tid, TRUE);drupal_set_breadcrumb($breadcrumb);
where $tid is the term-id of the taxonomy/term/term-id page
Reference: I'm looking at views.module // $Id: views.module,v 1.166.2.6 2007/01/21 21:03:37 merlinofchaos Exp $
#4
Sorry, I just got back to check on this today. I will try out your suggested patch, and at least see if it fixes my particular issue, then report back here. If not, I'll do as you suggested in your first post and try disabling different modules to see if any of them cause the problem.
Thanks for the help so far,
Stephanie
#5
Ok, I used the code from here: http://drupal.org/node/114548 and that seems to have fixed it. It's not an ideal scenario, but it is working, so that's good enough for me, for now.
Thanks again for the help,
Stephanie
#6
So I guess this is going to be one of those contentious issues about which module the compatibility patch should go in. :)
Attached is a patch for taxonomy breadcrumbs to add compatibility for the taxonomy/term View. It ensures it grabs hook_term_page by increasing the modules weight to an even higher value than Views, then checks if Views is being used to render taxonomy/term pages, and if so uses the View to render the page content (instead of taxonomy_term_page()).
I created this before finding the patch for Views at http://drupal.org/node/114548#comment-770378 . It's more lines than that patch, but perhaps there's some argument for why it makes more sense to modify this module and not Views.
#7
After applying the patch the breadcrumb is showing but the title is no longer the real title. Instead of this it is showing "Taxonomy term" on all terms' views.
#8
changing the "embed" argument to "page" fixed the title.
#9
Closing, because this is an old issue and with D7 on the horizon I am less inclined to add features to the D5 version.