- Issue created by @justcaldwell
- πΊπΈUnited States justcaldwell Austin, Texas
I don't see the
function imagefield_tokens_form_field_ui_field_edit_form_alter()
from the 7.x-1.x module file implemented anywhere in the later versions (8.x, 3.x, etc.). So there doesn't seem to me anything that adds the imagefield_tokens settings to the overall field settings UI? - πΊπΈUnited States justcaldwell Austin, Texas
Just for good measure, here's the node edit form as well. No settings there, either β though I don't know why you'd want site authors choosing tokens, instead of just entering an alt value.
- πΊπΈUnited States justcaldwell Austin, Texas
And, yes, there's a "Browse available tokens" link, but here's the resulting code with an unprocessed token in the rendered page.
- Status changed to Postponed: needs info
6 months ago 9:29am 22 June 2024 - πΊπ¦Ukraine ysamoylenko
Hello @justcaldwell,
Are you sure you configured both: Widget and Formatter for the image field for your entity (Display and Form modes)?
Token replacement will work only once you configured a compatible formatter.
There are two formatters available:
- ImageField Tokens
- ImageField Tokens: ColorBox
Widgets available:
- ImageField Tokens
- ImageField Tokens Widget Crop
Here are screenshots:
You can also configure a predefined token alt/title values for your image field inside its settings:
Hope you find this explanation useful.
Please reply here if you still experiencing any difficulties.