Sorry for cross posting from http://drupal.org/node/43411, but my site is in a critical stage and there was no response on the forums.
The problem is that I can't get the breadcrumbs generated by taxonomy_context to match the url path generated by pathauto whenever I tag a node with more than one term.
As long as I tag the node with just one term, things are fine. The moment I tag the node with more than one term, the breadcrumbs generated by taxonomy_context *always* follow the path of the lowest vocabulary- meaning, if I tag a node with terms from four vocabs, the node view always displays breadcrumbs based on the term in the lowest listed of the four vocabs on the administer>>categories page.
Another peculiarity I noticed is that even when tagging a node with terms from just one vocab, if the second term (pathauto creates the alias based on the term tagged in the first listed vocab) is alphabetically lower, taxonomy_context will pick that term to create the breadcrumbs on the node view. This gives rise to the same problem of conflicting urls and breadcrumb paths. If the second term is alphabetically higher, the correct breadcrumbs are generated.
I noticed that the taxonomy_context readme says it works best with a single level hierarchy and for a single term. Mine is a single level hierarchy with a top level parent in all vocabs.
I want taxonomy_context to always generate breadcrumbs based on the term chosen in the first vocab and to retain these breadcrumbs even in the node view. This is crucial to achieving proper site navigation and architecture.
Comments
Comment #1
venkat-rk commentedUpdate:
I just tried with book pages and the same problem occurs if a book page node is tagged with more than one taxonomy term.
Comment #2
joel_guesclin commentedI would be interested in any information that anybody can come up with, because I find this issue confusing too. Also, I haven't really understood why and when the breadcrumb contains taxonomy information (and which taxonomy in relation to the others) or the book information (all my content is organised in books).
Comment #3
venkat-rk commentedHello Joel,
From what I have seen so far, there are two situations when breadcrumbs contain taxonomy info:
1.) When you have installed taxonomy_context module and enabled your content types for the breadcrumbs at administer>>settings>>taxonomy_context>>Breadcrumb content types
2.) When you have a hierarchical taxonomy vocabulary (one top level parent term and several sub terms) and you build a menu (using menu module) that replicates the taxonomy hierarchy exactly.
I also found that this problem does not seem to occur in my 4.6.3 test site. It looks like something in the 4.6.5 update has broken taxonomy_context. But, I could be wrong.
You will be surprised to hear that my temporary fix is to turn off taxonomy_context. I still get the breadcrumbs because I built the menu manually (using the menu module) to exactly duplicate the taxonomy hierarchy. The only thing that is missing is the breadcrumb trail on the actual node view- the user loses all context at this point. However, since I have configured the navigation menu block to show on all pages, there is some consolation.
Comment #4
kae commentedI've had the same sort of problem. Have spent hours, maybe days, reading about taxonomy on this site. Would appreciate any other information/insights on the subject taxonomy and breadcrumbs.
Thank you,
ae2005
Comment #5
nancydruReopen this with a current release if it is still valid.