Hi,

I have a hiearchical taxonomy in place with taxonomy breadcrumb.

I have breadcrumbs like this:
Home > World > Europe etc etc

If I enable Taxonomy Context, it duplicates the top level term and displays a list of terms like this

Home > World > World > Europe etc etc

I would like to turn this feature off, as I dont need it.

How can I do it?

CommentFileSizeAuthor
#4 taxonomy_context_patchv2.txt917 byteslonehorseend
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

giorgio79’s picture

It seems this is caused by the Taxonomy Breadcrumb module and Taxonomy Context both outputting breadcrumbs...

I would like to stick with the Taxonomy Breadcrumb module as it uses pathauto urls. Is there anyway to disable breadcrumb in taxonomy context?

giorgio79’s picture

I solved this with commenting out the
drupal_set_breadcrumb

function calls in the module file

It would be nice if the breadcrumb enable/disable could be controlled from admin

Fayna’s picture

You can disable Taxonomy Context's breadcrumbs but it's on a per content type basis. Edit a content type and look near the top, there should be a collapsible "Taxonomy Context" section. It should have two options, "Disable taxonomy inline" and "Show taxonomy breadcrumb."

I'm using the latest -dev version and I see this.

lonehorseend’s picture

Version: 5.x-2.x-dev » 5.x-1.0
Status: Active » Needs review
FileSize
917 bytes

It sounds like you have a multiple hierarchy situation. I did too and yes, it messed up the breadcrumbs until I put this patch in place. It checks the hierarchy status of the vocabulary and if it is multiple, it will look at the parents of the term instead of parents_all and then take the first parent (the one with the lowest weight) and base the parents_all (breadcrumb trail) off of that one.

Update - 06/28/08 - The code now adds the last term for the node.

giorgio79’s picture

Thanks Guys.

Fayna: I have those options too in the content type setup and they are all set to disabled, still my problem stands.

lonehorseend: Thanks I will try the patch, but my taxonomy is a single location hierarchy. There can be only one parent for one term.

For now I still have drupal_set_breadcrumb uncommented, given there is already another module for taxonomy breadcrumb it could be an option to leave it out too from this on to increase focus :)

lonehorseend’s picture

Don't worry about applying the patch then. It has an if then else statement that looks specifically for the multiple hierarchy situation. If it doesn't find it, then it uses the default behavior.

najibx’s picture

only for anonymous user with Caching mode: Normal. (it's ok, if cache mode is None or authenticated user)

Same inb #2, I solved this with commenting out the drupal_set_breadcrumb.
Something is wrong there ...

Fatal error: Call to undefined function drupal_set_breadcrumb() in /home/mysite/public_html/drupal/sites/all/modules/taxonomy_context/taxonomy_context.module on line 268