Complete documentation

Created on 9 May 2015, about 9 years ago
Updated 6 August 2023, 11 months ago

Hi,

Thank you, thank you, thank you!!! I just discovered "Token Filter" and "Custom Tokens". Together these modules are providing a capability I've been searching for since starting into Drupal a couple of months ago.

Now my suggestion: It would be helpful if you would add something like the following to your project page:



  • Install and enable the module.
  • Go to "Configuration > Content authoring > Text formats". Configure (or add) a text format that is only available to trusted users of your site. (Use of tokens by untrusted users is a security risk.) You will find a new filter available called "Replace tokens". Select that filter and click "Save configuration".
  • Go to "Help > Token" to get a list of tokens available. There you will get a table with three columns: Name, Token, and Description. The name column at first provides a list of token types. Click the small arrow to left of any type name to get a list of tokens of that type. The items that appear in the "Token" column are the text you need to enter in the next step.
  • Go to any content of your site, such as a page or an article. For the Body, select the text format that you just configured. Now enter some text that includes any of the items in the "Token" column of the previous step. Click "Save".
  • Marvel that the token text has been replaced with its calculated value!
  • If the tokens in that list aren't enough and you need to define your own, get the " Custom Tokens β†’ " module.

That would have saved me a lot of head-scratching once I enabled the module and thought, "Okay, now what?"

πŸ“Œ Task
Status

Needs work

Version

2.0

Component

Documentation

Created by

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.

Production build 0.69.0 2024