Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

This module adds a new filter to Views, allowing you to filter media items by their taxonomy terms, including sub-terms. It provides the functionality of the "Content has taxonomy term ID (with depth)" filter directly for media entities.

This lightweight module is trying to solve the problem that Views filter named "Content has taxonomy term ID (with depth)" is available only for nodes and can not be used for media entities.

Related issue in Drupal Core : Views should support - Entity: Has taxonomy term ID (with depth) - for entities

The Module extends Taxonomy module from Drupal core and provides a new filter "Media has taxonomy term ID (with depth)".

Compared to the Taxonomy module that uses relationship table "taxonomy_index" between terms and nodes, this module uses only SQL query on existing tables. Module needs to know the name of your reference field. You must specify the field in the filter settings.

How to use

  1. Go to your Media Views -> Advanced -> Contextual filters -> Add -> Media has taxonomy term ID (with depth)
  2. In Reference field: Enter a machine name of the field in the media entity type, which is referencing to a taxonomy

Most of this module code comes from Commerce: Product taxonomy filter. A big thanks to this project maintainers.

8.x-1.x vs 8.x-2.x

Drupal core 8.6 introduces modifications in taxonomy table in database.
Use 8.x-2.x version of this module if your drupal core version is >= 8.6

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Aug 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
3.0.0-beta2 Pre-release 9–11 Aug 20, 2025