This module provides additional tokens for image fields. For each image style available, a token [node:field_image_field:style_name] will be provided. It is also possible to get image properties like width or height by using tokens like [node:field_image_field:style_name:height].
Configuration
No module configuration needed.
Gotchas
I've observed that after you create new image style it might not appear immediately in the available tokens list. If this is a case, you will need to reset cache at Performance page.
Depending upon the site's structure it might not be possible to see all of the available tokens via the token browser. For this reason we recommend using Fast Token Browser to improve the token browser.
Drupal 8 port
Thanks to work from Berdir, Bambell, silkogelman and others, the functionality has been merged into the Token module itself, so a separate module will not be needed for D8.
Credits
Damien McKenna has joined as a co-maintainer and will soon be working on a stable release. The module was initially created by Pavel A. Karoukin and includes many comments and patches from Drupal community.
Project information
- Module categories: Site Structure, Media
- 16,814 sites report using this module
- Created by pavel.karoukin on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Adds documentation, otherwise it is identical to 7.x-1.0-rc3.
Development version: 7.x-1.x-dev updated 11 Apr 2019 at 13:08 UTC