Drupal is a registered trademark of Dries Buytaert
drupal 11.4.0 Update released for Drupal core (11.4.0)! drupal 10.6.12 Update released for Drupal core (10.6.12)! drupal 11.3.13 Update released for Drupal core (11.3.13)! drupal 10.6.11 Update released for Drupal core (10.6.11)! drupal 11.3.12 Update released for Drupal core (11.3.12)! drupal 11.2.14 Update released for Drupal core (11.2.14)! drupal 10.5.12 Update released for Drupal core (10.5.12)! cms 2.1.3 Update released for Drupal core (2.1.3)! drupal 10.5.11 Update released for Drupal core (10.5.11)! drupal 11.3.11 Update released for Drupal core (11.3.11)! drupal 11.2.13 Update released for Drupal core (11.2.13)! drupal 10.6.10 Update released for Drupal core (10.6.10)! cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)! drupal 10.6.8 Update released for Drupal core (10.6.8)!

Vocabulary Condition provides taxonomy-based visibility conditions for blocks. The conditions can be used when configuring visibility rules on the Block Layout page, or anywhere the core condition plugin API is available (for example, with the Context module).

Which version should I use?

The recommended version is 2.x, which goes beyond what Drupal core offers:

  • Vocabulary or term — applies on taxonomy term pages. It matches whole vocabularies (as core does), and additionally specific taxonomy terms, optionally including all of their descendants. Ideal for section-based block placement: blocks assigned to a section keep working automatically when new child terms are created.
  • Content tagged with vocabulary — applies on content pages. It shows a block on every node tagged with a term of the selected vocabularies, with specific terms, or with any of their descendants. Drupal core provides no taxonomy-based block visibility for content pages at all.

Vocabularies and terms are combined with OR, and the conditions collect the proper cache metadata so that changes to the term hierarchy invalidate cached results. The 2.x branch requires Drupal 10.3, 11 or 12.

The 1.x branch is not recommended

Since Drupal 9.3, core includes the functionality this module originally provided: the generic entity bundle condition exposed for taxonomy terms and the taxonomy term route context. If you only need to match vocabularies on taxonomy term pages, you do not need this module anymore — use the core "Vocabulary" condition instead.

The 1.x branch is kept only for compatibility with existing sites and will receive no new features. New installs should use 2.x, or plain Drupal core if the core condition is enough.

Activity

Total releases
3
First release
Jul 2026
Latest release
1 day ago
Release cadence
0 days
Stability
67% stable

Release Timeline

Releases

Version Type Release date
1.0.3 Stable Jul 2, 2026
2.0.1 Stable Jul 2, 2026
2.0.x-dev Dev Jul 2, 2026