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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

YesCT’s picture

Just investigating right now. If find any issues will file follow-up for them.

YesCT’s picture

YesCT’s picture

core image field. widget media file selector.

imagefield-s05-media_file_selector-2013-01-10_1729.png

No setting in edit field for alt and title (or in manage display tab)

imagefield-s06-mediafileselectwidget-nodeedit-2013-01-10_1748.png

imagefield-s07-mediafileselectwidget-editfieldpopup-2013-01-10_1748.png

imagefield-s08-mediafileselectwidget-noalt-2013-01-10_1748.png

is there an issue open already for the media file select widget not showing alt? (what is the project/component for that?)

YesCT’s picture

core image field. widget media file selector.
(create content instead of edit one that had image widget before)

imagefield-s09-mediafileselectwidget-new-2013-01-10_1748.png

imagefield-s10-mediafileselectwidget-upload-2013-01-10_1748.png

alt in widget
imagefield-s11-mediafileselectwidget-alt-2013-01-10_1748.png

alt carried through in widget
imagefield-s12-mediafileselectwidget-alt-carriedthrough-2013-01-10_1748.png

no alt when viewing node
imagefield-s13-mediafileselectwidget-butnoaltonview-2013-01-10_1748.png

YesCT’s picture

file field. file widget.
filefield-s14-filewidget.png

filefield-s15-filewidget-noimagedisplay.png

oh. no image display. ok.

YesCT’s picture

I 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.

filedisplay-s17.png

filefield-s18-editfieldinmanagefields-2013-01-10_1849.png

HyperGlide’s picture

ParisLiakos’s picture

This 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

Mschudders’s picture

FileSize
50.92 KB
22.01 KB
17.2 KB
68.44 KB
46.21 KB
29.57 KB

I 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.

step 1
step 2
step 3
step 5
step 6
step 8

YesCT’s picture

@Mschudders what happens when you try and follow #1307054-95: Accessibility - Media browser image alt and title fields ?

YesCT’s picture

Issue summary: View changes

added related issue to media module wysiwyg

mgifford’s picture

Issue summary: View changes
Issue tags: +Accessibility

This is a great thread. Thanks @YesCT. We do need to consolidate these into a standard pattern.