I have created a context with a "Taxonomy term" condition set to the vocabulary I want the reaction "Blocks" to display a block on the taxonomy term page, "taxonomy/term/MYTERM". However it seems that the "Taxonomy term" condition is never checked or called in code to check.

Not sure whats going on here but for the immediate time I have set the a path condition instead.

Comments

jcisio’s picture

Category: bug » feature
Status: Active » Closed (won't fix)

I think it is a "won't fix" because of http://drupal.org/node/343110#comment-1846546

Nchase’s picture

Status: Closed (won't fix) » Active

you are refering to a 6.x issue from 2009. I'm not sure if "wont'fix" applies here. The taxonomy condition is simply not working...

jcisio’s picture

As far as I can see in http://drupal.org/node/343110#comment-1846546 the module maintainer explicitely said that the Taxonomy condition should live in a contrib module. Therefore I marked this one as "won't fix".

hixster’s picture

We've written a plugin which will trigger context on Taxonomy terms pages - we'll being posting this up shortly.

alex.skrypnyk’s picture

Issue summary: View changes

Here is my implementation of the plugin that also allows to target children of specific terms.

This is a sandbox project, but it has a proper test coverage.

https://drupal.org/sandbox/alexdesignworks/2196043

This will be released as a full project as soon as approved.

hixster’s picture

Here are the contributions I mentioned in #4 - might worth collaborating if these overlap Alex.

Context taxonomy descendants

Condition plugin for Context that activates when viewing a node referencing descendants of the specified taxonomy terms.

https://drupal.org/sandbox/BenYoung/1984224

Context specific taxonomy term page

Enables activation of a Context when viewing specific taxonomy term pages, or pages of descendant taxonomy terms.

https://drupal.org/sandbox/BenYoung/1984238

alex.skrypnyk’s picture

@hixster
Thanks for your contribution.

My module actually covers everything that you have in https://drupal.org/sandbox/BenYoung/1984238 and also has tests and it actually tightly integrated with existing Context Taxonomy Term plugin, so there is a single place in UI to configure all term-related conditions.

hass’s picture

Version: 7.x-3.0-beta1 » 7.x-3.x-dev

How is this possible that this is not part of the module? The module allows configuration, but when you use it - it is not working. The taxonomy hook seems missing.

Bensbury’s picture

Hi,
Would like to support hass here and wonder why this is an option in Context if it doesn't work.
If people aren't able to fix it, we could just remove it as a context option and maybe someone else could write an addon module or something.
Or since two guys fixed it with sandbox modules, someone could update Context to work with this option.

Just seems like it's been abandoned.
If there is a better method or technique to drop blocks and interactions into Taxonomy pages please let us know.

svouthi’s picture

I am also interested in setting contexts on specific taxonomy term pages. If one may select specific terms on the nodes to trigger the Taxonomy context, why not also specific term pages for the Taxonomy Term context?