0

Is there a known solution for beeing able to change the alt text of an image (From the media module) on a node level.

So I have one image in my image library. I have two nodes.

  • Node 1: About me, where I added the image from the library and I want to have an alt text: "Portret of me".
  • Node 2: Homepage, where I added the samen image from the library and I want to have an alt text: "Employee of the month, me".

I need this because I do want to use the media library but I also want my site to be accessible. So the alt can't be the same on all pages.

2
  • Are these image fields or WYSIWYGs (or both?)
    – Clive
    Feb 10 at 19:11
  • 1
    It seems like a great case for Paragraphs, or Entity reference where you add a new text field to it to use as the alt, and then adjusting the HTML output to use that text as the alt instead of using the Media alt.
    – prkos
    Feb 10 at 21:50

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.