Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Private content 3.1.0 Minor update available for module private_content (3.1.0). Usage Milestone: Focal Point Module focal_point crossed 1,000 active installs. Release: Icecast Streaming Server 2.0.0 Major update available for module icecast (2.0.0). Release: Scheduler Content Moderation Defaults 1.1.3 Minor update available for module scheduler_content_moderation_defaults (1.1.3). Release: FlowDrop 2.5.0 Minor update available for module flowdrop (2.5.0). Release: Ejector Seat 3.0.0 Major update available for module ejectorseat (3.0.0). Release: Ejector Seat 2.0.1 Minor update available for module ejectorseat (2.0.1). Release: Form Style 2.0.1 Minor update available for module form_style (2.0.1). Release: Direct Upload Media Image 1.1.3 Minor update available for module dumi (1.1.3). Module Revived: Commerce Shipping Order Percentage 1.2.0 Module commerce_shipping_order_percentage updated after 11 months of inactivity...

ImageField Tokens

4,141 sites Security covered
View on drupal.org

This module enhances image fields by allowing you to set default values and use entity tokens for the Alt and Title text. It also offers support for various image-related modules and widgets.

The ImageField Tokens module extends the default functionality of Image fields adding the ability to specify default values and use entity tokens in the Alt and Title text.

Features:

  • Configurable Alt and Title text now use current entity tokens instead of user/node Entity.
  • D6 -Support for Imagefield Crop.
  • D6 -Support for Image FUpload.

Requirements

D8 Requirements

Environment requirements:

  • Drupal 8.5.x and higher
  • PHP 7.1 and higher

Required modules:

D7 Requirements

Required modules:

Install:

Using drush:

  • drush en imagefield_tokens

Using the admin area:

  • Go to the page: /admin/modules
  • Find module 'Image field tokens'
  • Mark it for install
  • Save the configuration.

Tutorials/Documentations (D8)

  1. Add an 'image' field type to any content entity type (node, taxonomy, etc...)
  2. Set Form Display 'Image Field Tokens'
  3. Set Display format 'Image Field Tokens'
  4. Save changes.
  5. Create new content or change existing content entity.
  6. Select image in the entity edit form.
  7. Fill 'Title and 'Alt' fields for the image using available tokens from the form 'Browse available tokens.'
  8. Save changes.

UPDATE 30.07.19:

  • Currently, the D8 version supports default tokenized values, like the D7 version.
  • Added ImageCrop Widget support.

UPDATE 10.05.23:

The important thing:
Be careful when you provide access for editing entities (which have any fields which use a token tree in the widget) for untrusted users.

Administrators should only use imagefield_tokens on entities that don't have secret fields, otherwise, they have an access bypass vulnerability (Untrusted users will be able to see the content from the secret field after publishing entity if editor added tokenized field value to 'alt' or 'title' value of the image).

That is related to the token system when it shows all of the entity fields in the token tree on the entity edit page.

Sponsored and maintained by:

Sponsored and supported by: EPAM Systems

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.

Activity

Tracked releases
1
Tracked since
Jul 2026
Latest release
1 month ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
3.2.x-dev Dev 10–11 Jul 16, 2026