TokenLink
Features
## Installation
The module depends on token_filter and twig_tweak modules.
Post-Installation
After the installation, you should enable token replacement for your text format
here /admin/config/content/formats.
To customize token templates, copy them in your site theme in /templates/tokenlink folder.
## TokenLink example usage:
- Node tokens:
`[tokenlink:node:123]`
`[tokenlink:node:32:task]` - with key for template
`[tokenlink:node:32#MyTitle,_blank,Myclass active]` - with custom link title, target and class
- User entity tokens:
`[tokenlink:user:1]`
- Comment link token:
`[tokenlink:comment:1]`
## Media tokens
If media module enabled, these tokens became available:
- This token for Image type media files only, which shows image preview with thumbnail image style.
`[tokenlink:media:1:thumbnail]`
- This token for document type media files only, which shows generic image preview for media document.
`[tokenlink:media:2:document]`
- Token for Image media which open image in modal popup is
[tokenlink:media:1:modal]
## Commerce product tokens
Under the development...
Additional Requirements
Similar projects
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.