Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module creates a Views argument plugin that uses the value of an entity reference field from the current taxonomy term. This allows you to easily create contextual Views that filter content based on a related entity associated with the viewed term.

This Drupal 10 module provides a Views argument default plugin that allows you to retrieve the value of an entity reference field from the taxonomy term currently being viewed. This is particularly useful for creating contextual Views that filter terms based on a related entity associated with the current term.

Purpose

When building Views in Drupal, you often need to filter results based on the context of the current page. If you are on a taxonomy term page and that taxonomy term has an entity reference field (e.g., referencing a specific content type, user, or another taxonomy term), this module enables you to use the value of that entity reference field as a default argument for a Views contextual filter.

Usage Example

Let's say you have a taxonomy vocabulary called "Product Categories" and each category term has an entity reference field named `field_featured_product` that references a "Product" content type. You want to display a list of "Featured Products" related to the current category when a user visits a "Product Category" taxonomy term page.

Here's how you can achieve this using the VTERCF module:

  1. 1. **Ensure that your Taxonomy term has en Entity Reference Field**
  2. 2. **Create a View:**
    * Go to `Structure > Views > Add new view`.
    * Select Taxonomy Term in Show Views Options.
  3. 3. **Add a Contextual Filter:**
    * In your View, under the "Advanced" section, click "Add" next to "Contextual filters".
    * Select the entity reference you want to use to filter the list of terms.
    * **Crucially, configure this contextual filter as follows:**
    * When the filter value is NOT available: Select "Provide default value".
    * From the "Type" dropdown, choose **"Entity reference field from current term"**.
    * In the "Entity reference field name" text box, enter the machine name of the entity reference field on your
    *taxonomy term* (e.g., `field_featured_product`).
    * Apply (and save) your View.

Now, when you visit a "Product Category" taxonomy term page (e.g., `/taxonomy/term/123`), the View will automatically use the value from the `field_featured_product` on that specific taxonomy term to filter and display the corresponding featured products.

Activity

Total releases
4
First release
Jun 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 4
Maintenance
Dormant

Release Timeline

Releases

Version Type Release date
1.0.3 Stable Jul 1, 2025
1.0.2 Stable Jun 28, 2025
1.0.1 Stable Jun 28, 2025
1.0.0 Stable Jun 28, 2025