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.

Viewfield Argument Helper

144 sites No security coverage
View on drupal.org

This module helps content editors by providing helpful suggestions for contextual arguments when embedding views. It displays a list of available entities based on the view's configuration, making it easier to find and enter the correct IDs for filtering.

Provides a helper/info widget for the Viewfield arguments textfield.

Making embedded Views can be tricky for content editors, particularly if they need to add contextual filtering. Viewfield exposes the contextual arguments as a text field, requiring the user to compose these arguments properly. For example "204,95/72" might mean pass (filter by) terms 204 OR 95 on the first contextual argument and node ID 72 on the second. But you have to know:

- there are two contextual filters configured for this View display
- the first is a term (which vocabularies?)
- the second is a node (which bundles?)
- how to figure out the term IDs and node IDs

In its first iteration, this module attempts to lookup available options (i.e., entities) for the contextual arguments, based on how they're configured in the View, and expose a list of options to the user. The user still has to compose the contextual argument string, but at least they don't have to hunt as hard for what tid to use. A contextual argument composition wizard UI is on the long term roadmap.

Since this module uses, in part, the argument validation settings to generate a list of entities, setting good validation on the contextual argument will limit the lookup table to relevant filter items. For instance, if you intend to limit a taxonomy tid argument to a specific taxonomy, setting up validation for that vid will restrict entities in the lookup table to that vid.

Activity

Total releases
2
First release
Feb 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Slowing

Releases

Version Type Release date
1.3.3 Stable Jul 2, 2025
1.3.2 Stable Feb 12, 2025