Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
jcisio CreditAttribution: jcisio commentedI think it is a "won't fix" because of http://drupal.org/node/343110#comment-1846546
Comment #2
Nchase CreditAttribution: Nchase commentedyou 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...
Comment #3
jcisio CreditAttribution: jcisio commentedAs 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".
Comment #4
hixster CreditAttribution: hixster commentedWe've written a plugin which will trigger context on Taxonomy terms pages - we'll being posting this up shortly.
Comment #5
alex.skrypnykHere 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.
Comment #6
hixster CreditAttribution: hixster commentedHere 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
Comment #7
alex.skrypnyk@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.
Comment #8
hass CreditAttribution: hass commentedHow 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.
Comment #9
Bensbury CreditAttribution: Bensbury as a volunteer commentedHi,
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.
Comment #10
svouthi CreditAttribution: svouthi commentedI 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?