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). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Views Token Argument

3,948 sites Security covered Drupal 8–11 Views ecosystem
View on drupal.org

This module allows you to use tokens as contextual filters in Views, enabling you to customize how views are displayed based on current user or page-specific entity information. It also offers an option to use raw token values and includes a debug mode for easier troubleshooting.

Views Token Argument allows you to use token as contextual filter for Views.

You can use both current user values or the entity related to the current page (for example the current node on node/x pages, or the user on user/x, etc.). The dev branch (2.0.x) now supports global tokens.

Moreover you have an option to take the raw value for the fields (for example ID instead of linked title provided by token module).

Example use case : a user has an entity reference to taxonomies and you wish to show in a view all content related to the terms the user has selected. Or you wish to show last contents that have the same category of the current viewed node...

There is also a debug mode to show you the final value after processing.

This module has no dependencies but uses Token module to browse available tokens.

Similar module : Views Extras (Session / Cookie / Token support) allows you use session, cookie or token of the current user. Difference for now is that it does not provide with current page argument (node, taxonomy, etc.).

Depends on

Dependencies of the latest stable release

  • Token
  • views Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Mar 2025
Latest release
2 months ago
Releases (12 mo)
3 ▲ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
2.0.6 Stable 8–11 Jun 17, 2026
2.0.5 Stable 8–11 Jun 17, 2026
2.0.4 Stable 8–11 Jun 17, 2026
2.0.3 Stable 8–11 Mar 21, 2025