Module Description
Provides a Taxonomy Vocabulary condition for block visibility.
This condition can be used when configuring visibility rules for blocks on the Blocks Layout page, or when configuring conditions with the Context module.
The context service within this module loads the taxonomy term from the current page's route. The condition then determines if the vocabulary of that taxonomy term is one that was selected in the configuration. Note that this means that they are essentially answering "Is this the page callback for a term of this vocabulary?" and not "Is the current page's node tagged to a term from this vocabulary?" or anything like that.
The condition and context are based heavily on the NodeType condition and NodeRouteContext in core. There are multiple issues to get a similar condition into core, and if/when that happens this module will be deprecated, but none of those issues currently have a clear direction and recent activity.
This condition can be used when configuring visibility rules for blocks on the Blocks Layout page, or when configuring conditions with the Context module.
The context service within this module loads the taxonomy term from the current page's route. The condition then determines if the vocabulary of that taxonomy term is one that was selected in the configuration. Note that this means that they are essentially answering "Is this the page callback for a term of this vocabulary?" and not "Is the current page's node tagged to a term from this vocabulary?" or anything like that.
The condition and context are based heavily on the NodeType condition and NodeRouteContext in core. There are multiple issues to get a similar condition into core, and if/when that happens this module will be deprecated, but none of those issues currently have a clear direction and recent activity.
Module Link
Project Usage
275
Security Covered
Not Covered By Security Advisory
Version Available
Production
Module Summary
This module solves the issue of determining block visibility based on the taxonomy vocabulary of the current page's route.
Data Name
vocabulary_condition