Support alt text for images

Created on 27 October 2015, over 9 years ago
Updated 18 June 2024, 8 months ago

The alt text for image should be available to TimelineJS. This change plus adding @alt to TimelineJS provides support for alt text in timelines.

โœจ Feature request
Status

Needs review

Version

3.0

Component

Code

Created by

๐Ÿ‡จ๐Ÿ‡ฆCanada Liam Morland Ontario, CA ๐Ÿ‡จ๐Ÿ‡ฆ

Live updates comments and jobs are added and updated live.
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 bisonbleu

    The latest patch, although it applied without issues, only partially worked.

    It correctly updated the Format ยป Settings form where the field mapping is done; but the code that fetched and setsd the Alt Text (TimelineJS.php) was simply copied from other fields, e.g. Credit, Caption, which are regular node fields.

    But a Media Image field is an entity reference field, and the Alt text lives 3 levels deeper. So I refactored that part with an alt_text_retriever service.

    Note -- When setting up the view, the Format ยป Settings ยป Media Alt Text field mapping expects a proper media ID.

  • ๐Ÿ‡จ๐Ÿ‡ฆCanada bisonbleu

Production build 0.71.5 2024