Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Views Token Argument

Security covered Under active development 4,170 sites

Part of the Views ecosystem · 280 projects

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.).

Drupal 8–11

Ask your assistant about Views Token Argument

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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
6
Tracked since
Jul 2023
Latest release
3 months ago
Releases (12 mo)
3 ▲ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP 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
2.0.2 Stable 8–10 Oct 18, 2023
2.0.1 Stable 8–10 Jul 13, 2023