Skip to main content
drupalreleases
Release: Cms 2.2.3 — Update released for Drupal core (2.2.3)! Release: Easy Breadcrumb 2.0.11 — Minor update available for module easy_breadcrumb (2.0.11). Release: Bootstrap 8.x-3.42 — Minor update available for theme bootstrap (8.x-3.42). Release: Editoria11y Accessibility Checker 3.0.10 — Minor update available for module editoria11y (3.0.10). Release: Editoria11y Accessibility Checker 2.2.24 — Minor update available for module editoria11y (2.2.24). Release: Leaflet 10.4.13 — Minor update available for module leaflet (10.4.13). Release: Flag 5.1.1 — Minor update available for module flag (5.1.1). Release: MCP Sentinel 2.33.0 — Minor update available for module mcp_sentinel (2.33.0). Module Revived: Bootstrap 8.x-3.41 — Theme bootstrap updated after 6 months of inactivity (8.x-3.41). Security Coverage: Component Library — Module component_library now has official Drupal security advisory coverage.

Vocabulary Condition (Block Visibility)

214 sites No security coverage Drupal 10–11
View on drupal.org

This module allows you to control block visibility based on taxonomy terms. It enables blocks to be displayed on specific taxonomy term pages or on content tagged with particular terms or their descendants.

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.

How it differs from Drupal core

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. The 2.x branch goes beyond that in two ways:

  • It adds matching by specific taxonomy term, optionally including all of its descendants. This keeps section-based block placement working automatically when new child terms are created, something the core "Vocabulary" condition does not do.
  • It adds taxonomy-based block visibility on content (node) pages, which Drupal core does not provide at all.

If you only need to match whole vocabularies on taxonomy term pages, you do not need this module: use the core "Vocabulary" condition instead.

The 1.x branch is not recommended

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

Depends on

Dependencies of the latest stable release

  • taxonomy Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
5
Tracked since
Jan 2023
Latest release
3 weeks ago
Releases (12 mo)
4 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
2.0.2 Stable 10–11 Sep 15, 2026
1.0.3 Stable 10–11 Jul 2, 2026
2.0.1 Stable 10–11 Jul 2, 2026
2.0.x-dev Dev 10–11 Jul 2, 2026
1.0.2 Stable Jan 13, 2023