Vocabulary Condition
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Component created
Component changed
Component body
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.
They include:
* #2281659: Create a vocabulary condition
* #2288861: Add vocabulary condition to block visibility
* #1932810: Add entity bundles condition plugin for entities with bundles
Related modules that have stemmed from those issues but do not currently work:
* Entity Block Visibility
* Vocabulary Condition (separate)
Update: The 8.x-3.0 branch of ctools is reported to have a generic entity bundle condition.
