Use tokens to define elements

Created on 18 May 2024, 6 months ago

Problem/Motivation

Currently this module is configured by choosing references to specific fields. In the case of the image, an additional field is provided to choose an image style.

All of this capability could be provided (with fewer fields) by allowing for tokens to be provided, which can specify image styles and other formatting specifics. This could also be useful for the foreground image field proposed in Allow for a foreground image element Active , especially since the example cited there is actually a field on a referenced entity, and referencing those kind of deeper relationships (and adding local formatting features like image styles) using tokens is an understood approach in the Drupal community.

Proposed resolution

Refactor the form elements to expect tokens instead, and allow the UI to include a link to launch the token browser. Similarly refactor the code to parse the settings values for tokens.

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇨🇦Canada mandclu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024