Closed (fixed)
Project:
Custom Breadcrumbs
Version:
6.x-2.x-dev
Component:
custom_breadcrumbs_taxonomy
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Jul 2009 at 08:47 UTC
Updated:
16 Sep 2009 at 05:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
cesarian commentedI forgot to mention my settings.
I use only custom vocabulary:
title:
kenniscentrum
whitebooks
[term]
path:
|whitebooks/categorie/[termpath-raw]kenniscentrum
whitebooks
Comment #2
MGN commentedAre all of your terms on the same level, or are some terms parents/children of other terms?
I just committed a fix (http://drupal.org/cvs?commit=245078) for an issue that might be related, can you check to see if it works now?
Comment #3
cesarian commentedHi I have tried the latest versie downloaded today (3 August) and it did not work for me. I still get the same result.
The terms are on the same level, they are under 1 vocabulary
Comment #4
cesarian commentedMGN, did you found the problem?
Comment #5
MGN commentedNo . I haven't been able to reproduce this. If I understand correctly, you are saying that if the node has the heaviest term (by weight, last on the taxonomy term list), then you get the wrong term in the breadcrumb. But if the node has a lighter term, everything works correctly?
Please verify that I have this right.
Do your pages have more than one taxonomy term, or just one?
Are you using node revisions?
Comment #6
cesarian commentedYes the heaviest term is wrong and the lighter ones are all correct. I don't use node revisions. On the page I have a list with all 5 terms
Comment #7
MGN commentedWhen a node has more than one term, the lightest term is used (by design). Check the weights of each of the terms on the page from admin/content/taxonomy . On the edit form for the term, under advanced options, you can find (and adjust) the weight. In your example above, I would expect Enterprise Java is actually the lightest term on this page.
Comment #8
cesarian commentedHi, I have checked and the weights of all terms are correctly. Here are the lists:
Algemeen - 0
Business & IT - 1
Enterprise Java - 2
Integratie, SOA & BPM - 3
Oracle platform - 4
Oracle tools - 5
So the settings are already correct, only the last term is wrong for the breadcrumb.
I forgot to mention that this page is not a node but a view page. The page has the url: http://site.com/whitebooks/categorie/oracle-tools
Comment #9
MGN commentedSorry, I am still not understanding this. If all 5 terms are on the list, then the lightest (Algemeen - 0) should be selected for the breadcrumb. But I am curious why you expect the last one to be selected. Perhaps I don't understand the view well enough.
I assume the view is displaying a list of nodes since [term] and [termpath] are both node-type tokens. Is this assumption correct? If so, then the lightest term from the first node returned should be displayed. What terms are associated with the first result of the view, and what are their weights?
Comment #10
cesarian commentedI have a view page that list contents (nodes) of a content type. I made 5 terms under 1 vocabulary and use them as categories. So site.com/whitebook is the view and if someone come to site.com/whitebook/categories/algemeen then it still use the view page but it shows only all whitebooks with the term algemeen. The breadcrum is showing: site.com > kenniscentrum > whitebooks > algemeen
So I visited site.com/whitebook/categories/oracle-tools which is the heaviest term. The breadcrumb should then show site.com > kenniscentrum > whitebooks > oracle tools but instead it show site.com > kenniscentrum > whitebooks > enterprise java
So the /categories/oracle-tools are parameters to filter the contents
I don't know if I explained it correctly now. If not please tell me
Comment #11
MGN commentedGreat. This is the kind of information that I need. Can you export the view and attach it here so I can learn more about how your view is configured?
Comment #12
cesarian commentedHi here is the view. The term filter is placed on Arguments
Comment #13
cesarian commentedMGN, any update for this problem? Thanks
Comment #14
MGN commentedNo. I haven't been able to reproduce it yet. I have made some other changes to the custom_breadcrumbs taxonomy module yesterday, so you might want to check out the latest dev to see if the problem persists. I'll leave this as active until its resolved.
Thanks
Comment #15
MGN commentedIt occurred to me that this might just be due to an incorrect url alias for whitebook/categories/oracle-tools. Since your view is using term id as an argument, if the url alias for oracle-tools is set to the tid for enterprise java, then [cat] would be replaced with enterprise java. Of course you should see this in the view results as well....still, I thought it might be worth checking.
With the latest code, you can try the following custom breadcrumb (switch to taxonomy tokens rather than the node tokens) :
I just tested again on the latest dev with a similar configuration (5 terms in 1 vocabulary with a view using a term id argument, custom breadcrumb vocabulary breadcrumb, etc.) and everything works as expected on my test site.
Comment #16
cesarian commentedHi it worked fine now :) Thank you very much!!!!!!!!! .I installed latest version (downloaded at 1-09-2009)
I used this config:
Comment #17
MGN commentedGreat! Glad it worked out.