Add 'alt' and 'title' tokenized text options for image formatters, and a 'title' option for the generic file formatter

Created on 26 September 2011, about 13 years ago
Updated 31 May 2023, over 1 year ago

Having alt and title information as a part of the image field itself is a conceptual failure. Alt and title information is related to display, hence they should be options in a field formatter. Ideally we get support for fields that can be attached to files which can provide per-file metadata like alt and title, which the formatter can the specify the alt text should be [file:field_alt_text] or the title should be [file:field_title].

✨ Feature request
Status

Active

Version

11.0 πŸ”₯

Component
Image moduleΒ  β†’

Last updated 10 days ago

Created by

πŸ‡ΊπŸ‡ΈUnited States dave reid Nebraska USA

Live updates comments and jobs are added and updated live.
  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¨πŸ‡¦Canada mgifford Ottawa, Ontario

    I think this will tie into ATAG 2.0. But largely just bumping this issue to see if there is still value in the concept.

  • πŸ‡³πŸ‡ΏNew Zealand john pitcairn

    Still valid IMO.

    We use a "default" alt, title and caption entered at upload, with a custom override option available when using the media. Implemented via various horrible hacks over the years ;-)

    It would be great to be able to handle this using core media embed and field widgets.

Production build 0.71.5 2024