Form widget settings on entity manage form display page.
Format setting on entity manage display page.
Widget on entity add/edit page.
Results.

This project is not covered by Drupal’s security advisory policy.

Replaced by: 

Merged into the main module.

Overview

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

Features

Configurable Alt and Title text now use content entity tokens instead of default tokens.

Requirements

Environment requirements:

  • Drupal 8.5.x and higher
  • PHP 7.1

Dependencies

Required modules:

Install:

Using drush:

  • drush en image_field_tokens

Using admin area:

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

Tutorials/Documentations

  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 a new content or change existing content entity.
  6. Select image in entity edit form.
  7. Fill 'Title and 'Alt' fields for the image using available tokens from the form 'Browse available tokens.'
  8. Save changes.

Sponsored and maintained by:

Sponsored and supported by: EPAM Systems

Recommended modules

Drupal 7 module version:
https://www.drupal.org/project/imagefield_tokens

Currently, support of the module is stopped because the current project (Image Field Tokens D8) is merged with the main project (ImageField Tokens) as an 8.x branch.

Current project page is:
https://www.drupal.org/project/imagefield_tokens

Supporting organizations: 

Project information

Releases