Use media image's alt (and maybe title) on referencing image

Created on 7 December 2016, almost 8 years ago
Updated 3 January 2024, 11 months ago

If e.g. the image media type has an alt and title, then on a content type having an image field (I'm using media browser), it selects the image, but the alt & title defined on the media is not inherited or reapplied on the current item. I think it'd be the expected behavior.

πŸ’¬ Support request
Status

Needs review

Version

2.2

Component

Widget plugins

Created by

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

Merge Requests

Comments & Activities

Not all content is available!

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

  • First commit to issue fork.
  • πŸ‡ΊπŸ‡ΈUnited States SamLerner

    The patch stopped applying, and since it's the year 2024, I created an MR and a pull request out of the patch. Looks to be working well, could use a review.

  • πŸ‡ΈπŸ‡±Sierra Leone ptkoroma

    Reviwed and patch working fine for me.

  • Status changed to RTBC 10 months ago
  • πŸ‡ΊπŸ‡ΈUnited States SamLerner

    Moving to RTBC.

  • Status changed to Needs work 3 months ago
  • πŸ‡¨πŸ‡­Switzerland berdir Switzerland

    It's quite unclear to me why this there is a use case of mixing direct file selection *and* media referenced, I would assume you'd use either one or the other. I can see it with multiple direct references to files from nodes, but limiting this specifically to media seems strange.

    I suggest updating the issue summary with updated instructions on the use case around this and why it should be limited to nodes.

    Also, the code should be more careful to verify that the reference is correct and the field exists, with things like revisions and multi-value fields, it might not actually select the media you think it does.

  • πŸ‡¨πŸ‡·Costa Rica esolano

    Re-rolling patch to make it compatible with Drupal 10.3

Production build 0.71.5 2024