Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
So many ways of making image fields, so many ways of specifying alt for each.
Need documentation and recommendations of when to do which way to recommend something.
Proposed resolution
Look at various ways of getting image alt tags for fields.
Remaining tasks
TBD. (reviews needed, tests to be written or run, documentation to be written, etc.)
User interface changes
No UI changes anticipated. (just investigating them/documenting)
API changes
No API changes.
Related
- Media module, wysiwyg integration component #1307054: Accessibility - Media browser image alt and title fields
Comment | File | Size | Author |
---|---|---|---|
#9 | step1.PNG | 29.57 KB | Mschudders |
#9 | step2.PNG | 46.21 KB | Mschudders |
#9 | step3.PNG | 68.44 KB | Mschudders |
#9 | step5.PNG | 17.2 KB | Mschudders |
#9 | step6.PNG | 22.01 KB | Mschudders |
Comments
Comment #1
YesCT CreditAttribution: YesCT commentedJust investigating right now. If find any issues will file follow-up for them.
Comment #2
YesCT CreditAttribution: YesCT commentedDrupal 7 core image field. image widget.
Comment #3
YesCT CreditAttribution: YesCT commentedcore image field. widget media file selector.
No setting in edit field for alt and title (or in manage display tab)
is there an issue open already for the media file select widget not showing alt? (what is the project/component for that?)
Comment #4
YesCT CreditAttribution: YesCT commentedcore image field. widget media file selector.
(create content instead of edit one that had image widget before)
alt in widget
alt carried through in widget
no alt when viewing node
Comment #5
YesCT CreditAttribution: YesCT commentedfile field. file widget.
oh. no image display. ok.
Comment #6
YesCT CreditAttribution: YesCT commentedI feel like I should be able to something with this.. based on #1553094: Alt and Title support for Images. But I'm not sure.
Can I use the file field and do some config to be able to use it for images and get alt in the html?
I got this far... but then dont know what to do. There dont seem to be more options on a file field than there was before.
Comment #7
HyperGlide CreditAttribution: HyperGlide commentedYou may find http://drupal.org/node/1553094#comment-6638474 useful.
Comment #8
ParisLiakos CreditAttribution: ParisLiakos commentedThis is more of a media issue.
File entity module does not use core's alt and title attributes of image fields.
It attaches two textfields on image file type and uses those fields instead..which makes it confusing for site builders
Comment #9
Mschudders CreditAttribution: Mschudders commentedI am having issues when I am adding it via WYSIWYG.
I can enter the fields alt & text but they are not displayed.
I am using the latest media DEV & File Entity dev + using the panopoly distribution.
As you can see in the screenshots I can add it but it is not displayed in the wyswyig and not when displaying the content.
Comment #10
YesCT CreditAttribution: YesCT commented@Mschudders what happens when you try and follow #1307054-95: Accessibility - Media browser image alt and title fields ?
Comment #10.0
YesCT CreditAttribution: YesCT commentedadded related issue to media module wysiwyg
Comment #11
mgiffordThis is a great thread. Thanks @YesCT. We do need to consolidate these into a standard pattern.