token_browser
22 sites
Security covered
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_browserto 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, ];
Integrations
These modules will automatically use the token browser form element provided by this module where applicable:
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.