I'm running a site using a phptemplate theme based on "box_grey". I have the taxonomy_context module installed. All the content on my site is organised in "books".
I'm confused about how either the module or the theme decides which breadcrumbs to display. I'm very happy with the taxonomy breadcrumbs getting displayed when I am navigating a particular taxonomy, however when I display the full text of an article I have two issues:
a) The article may belong to several categories in different vocabularies, but only one category breadcrumb gets displayed at the top of the article - presumably by taxonomy_context (since when I switch off this module, the category is replaced by the book breadcrumb). In fact, taxonomy_context appears to be displaying the breadcrumb of the alphabetically - is it possible to display all the relevant breadcrumbs (like on Amazon)?
b) Would it be possible to stop displaying the vocabulary breadcrumb, and instead display the book breadcrumb whenever a full book page (ie body not teaser) is being displayed?
I'm not sure if this is a taxonomy_context question or a theme question - but would be grateful for some help.
Comments
needs work
drupal core cannot support multiple breadcrumbs for a given request. this would be a reasonable enhancement.
the "winning" breadcrumb during a page request is the last one that is set.
you can, of course,
you can, of course, influence which is the winning breadcrumb by setting the module weight. ie. when you don't want taxonomy breadcrumbs on book pages, just set the weight of book.module higher then the weights of you taxonomy modules:
mysql> update system set weight = 1 where filename = 'modules/book.module';
4.7 version has a setting.
Taxonomy context 4.7 allows you to select which node types to set breadcrumbs for. You can try version 1.39 (the last HEAD version before 4.7 updates were done), see here. Then navigate to the page
admin/node/configure/types
choose your content type, and set 'disabled' for 'show taxonomy breadcrumb.'
Where is 4.7 taxonomy context?
I can't find taxonomy context module in the 4.7 or cvs list.
Just branched it...
...should show up by tomorrow.
Not sure what this means....
I'm not on 4.7 yet - can you explain what this means? I would like the taxonomy_context breadcrumb to show when listing the taxonomy (with the dependent nodes and their teasers), but NOT when showing the actual body of the book node. Does this make sense, and will it work like this?
Also, do you have any thoughts about the possibility of displaying multiple breadcrumbs (like Amazon) for articles that are under multiple categories. At the moment it seems to be completely arbitrary - it's just the top category in alphabetical order that gets "breadcrumbed".
Explanation
If you use this version instead of the one you downloaded, it might work, and does include the ability to select which content types display breadcrumbs, which you do through the content type settings, at the url (on your site) that I indicated. You would turn off breadcrumbs for book type nodes.
As for showing multiple, well, this could be done by supplementing the build-in breadcrumb, e.g., adding more below it. If I get a chance I'll look into this.
multiple categories & taxonomy breadcrumbs
When there are multiple categories for a node type, I would love to be able to choose which vocabulary is displayed for the taxonomy breadcrumb.