Using tokens in a view global custom text field

Created on 26 January 2012, about 13 years ago
Updated 14 August 2024, 8 months ago

Is it possible to use "regular" tokens in a views global custom text field? Could it be? I am trying to use something like [site-name] - I know I can use the "replacement patterns" from other fields in my view but I also want to use other tokens.

Feature request
Status

Needs review

Version

3.0

Component

Code

Created by

🇺🇸United States joemoraca

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States Harry Slaughter Omaha NE USA

    #23 does work. Thanks for the workaround.

  • 🇮🇹Italy Giuseppe87

    On Drupal 10.1.x trying #23 I get the error - twig tweak is installed, if I print {{ drupal_token(something)) }}on a normal twig, it works:

    Twig\Error\SyntaxError: Unknown "drupal_token" tag in "__string_template__d63e10f79d9d43968f5ae212f85498f7" at line 1. in Twig\Parser->subparse() (line 160 of /var/www/html/vendor/twig/twig/src/Parser.php).
    

    The above solutions did need something else or worked out of the box?

  • 🇨🇴Colombia wilsotoa Cucuta, Norte de Santander

    #23 it worked for me, thank you

Production build 0.71.5 2024