Token Filter is a very simple module to make token values available as an input filter.
This doesn't mean that all tokens will work in every location. For example, if you use a [node:field_foo] token in the text of a block, the token system will not know which node you are referring to and will not replace the token.
It is up to you when you are implementing this module to be aware of the context for token usage and use them appropriately.
The Context Stack module may assist you with replacing tokens you don't otherwise have access to.
Drupal 8
8.x-1.x issues are actively monitored so please get involved.
Drupal 7
The module now supports native tokens (e.g. [site:name]
) and all global tokens by default. It even allows some contextual tokens like node or user to be replaced, but currently does not encourage users to use them in the filter help text.
Credits
The Drupal 6 version of this project (no longer supported) was sponsored by Nuvole and Youth Agora.
Project information
- Maintenance fixes only
Considered feature-complete by its maintainers. - Module categories: Content Editing Experience, Developer Tools
- Ecosystem: Token
- 61,310 sites report using this module
- Created by asciikewl on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Supports CKEditor 5
Development version: 2.x-dev updated 23 Mar 2024 at 01:54 UTC
Development version: 2.x-dev updated 23 Mar 2024 at 01:54 UTC
Development version: 7.x-1.x-dev updated 27 Apr 2020 at 22:40 UTC