Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Token Browser

Security covered Under active development 74 sites

Part of the Token ecosystem · 21 projects

This module offers an alternative way to browse all available tokens on your Drupal site using HTMX. It allows you to view deeply nested tokens without encountering recursion limits that could crash your site. Developers can also integrate this token browsing functionality into their own forms.

Provides an alternative Token browser element using HTMX for requests. Browse all tokens available on your site with no depth limitations.

Features

  • Browse deep nested tokens beyond the default recursion depth limit without crashing your site.
  • Visit the help page on your site at /admin/help/token_browser to see all available tokens.
  • For Developers: Provides an alternative theme function to attach token browser functionality to form fields.
    Replace '#theme' => 'token_tree_link'
    With '#theme' => 'token_browser_link'
    Example:
    $form['tokens'] = [
      '#theme' => 'token_browser_link',
      '#token_types' => ['node', 'user'],
      '#global_types' => TRUE,
    ];
    
  • As of version 1.0.1, administrators can globally alter the theme registry for every existing token_tree_link to automatically use this token browser. The settings form is available at /admin/config/user-interface/token-browser
  • As of version 1.0.2, administrators can set the size of the token browser modal when enabled globally.

Quick Start

To use this token browser everywhere on your site, do the following:

  1. Navigate to the settings form at /admin/config/user-interface/token-browser.
  2. Check the box Replace Token module's default browser sitewide (enabled by default).
  3. Check the box Force recursion limit. This is recommended.
  4. Optionally override Dialog options (defaults: Width = 800, Height = 500).
  5. Click Save configuration button.
  6. Anywhere you see a Browse available tokens link will now point to the Token browser route.

Similar projects

Fast Token Browser
This was a Drupal 7 module that never got ported but claims to achieve the same objective using ajax. My module uses the new HTMX library in Drupal core and completely eliminate the need for any Jquery.

Drupal 11 · not 10

Ask your assistant about Token Browser

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

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Nov 2025
Latest release
1 month ago
Releases (12 mo)
4 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
1.0.2 Stable 11 Sep 12, 2026
1.0.1 Stable 11 Jul 27, 2026
1.0.0 Stable 11 Nov 15, 2025
1.0.x-dev Dev 11 Nov 13, 2025