Module Description
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:
* Image
* Token

D7 Requirements
Required modules:
* D6 - FileField Paths
* D6 - ImageField
* D7 - core Image module

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)

* Add an 'image' field type to any content entity type (node, taxonomy, etc...)
* Set Form Display 'Image Field Tokens'
* Set Display format 'Image Field Tokens'
* Save changes.
* Create new content or change existing content entity.
* Select image in the entity edit form.
* Fill 'Title and 'Alt' fields for the image using available tokens from the form 'Browse available tokens.'
* 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:


* Added Colorbox formatter support.

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

Project Usage
5924
Creation Date
Changed Date
Security Covered
Covered By Security Advisory
Version Available
Production
Module Summary
The ImageField Tokens module aims to solve the issue of specifying default values and using entity tokens in Alt and Title text for Image fields in Drupal 8 and higher.
Data Name
imagefield_tokens

OPENAI CHATBOT

OPENAI CHATBOT

14:29:24
Generic Chatbot
Hi, I'm a Drupal module expert powered by OpenAI, answering your questions about the Drupal module ecosystem. How can I be helpful today? Please note that we will log your question.