Drupal Technical
[Drupal] How to disable a block on a node with a particular taxonomy term via contexts?
We have faced a situation in one of our Drupal sites where we needed to disable a Drupal block that was being displayed using Contexts. The block had to be disabled for all nodes that contained a particular taxonomy term. If you are facing the same situation in your Drupal site which is using Contexts and are looking to know how to disable a block on a node with a particular taxonomy term via Contexts then continue reading.
Follow the steps below
- Download and install the module - Context Disable Context
- Create the context with relevant conditions to display the block
- Create a new context with the condition as Taxonomy and reaction as Disable Context and select the context that you want to disable on pages with the selected taxonomy term.
- Flush all caches
If all the above steps are followed properly, that block will be disabled on pages that has the mentioned taxonomy terms.