CCK version: 6.x-2.0
Folder permissions: 755
Imagefield configuration: default that comes when adding a new imagefield type to node, only ticked "Enable custom alternate text" and "Enable custom title text", "Description field" set to enabled. Added [uid] for "Path settings".

Results:
When creating a new node, image field appears alright, and image gets uploaded. But when you add texts to the alt, title and description and save the node and then edit the node, texts do not appear next to the saved image, fields stay empty. When checking the database, texts are saved there along with other serialized info and when you type something to the text fields, the info gets changed, too.

CommentFileSizeAuthor
#1 332025.patch876 bytesowen barton

Comments

owen barton’s picture

Version: 6.x-3.0-alpha2 » 6.x-3.x-dev
Priority: Normal » Critical
Status: Active » Needs review
StatusFileSize
new876 bytes

I can confirm this - alt text and image title are not being used in the image tag. Bumping this to critical, since this is a pretty serious accessibility issue for many sites.

The attached patch fixes this, by passing the correct data into the theme function.

matason’s picture

This patch fixes the problem, seems like the structure of the $element['#item'] array changed.

owen barton’s picture

Status: Needs review » Reviewed & tested by the community

I guess that counts as a review and test ;)

drewish’s picture

Status: Reviewed & tested by the community » Fixed

thanks, committed to HEAD.

drewish’s picture

openmind’s picture

Status: Fixed » Active

Hi Guys,

I've run the above patch but still am not getting any alt or title values saved. I have looked into the database table for my content type and everything except the alt and title are saved eg.

field_thumbnail_image_data
a:5:{s:3:"fid";s:2:"24";s:5:"width";i:95;s:6:"height";i:54;s:8:"duration";N;s:11:"description";s:0:"";}

I'm using CCK version 6.x-2.1. Any help or rough ideas of where to look would be appreciated. I have gone through all the files in the module but the main issue seems to be that the alt and title data is not being saved into the database.

Thanks for reading,

Chris

openmind’s picture

Status: Active » Fixed

Hi Guys,

Just discovered that this is something to do with FileField Meta. As soon as I disable FileField Meta, my alts and titles are working. Hooray!

Anyone else who has the same issue may want to check out....

http://drupal.org/node/311436

Kind regards,

Chris

szy’s picture

Status: Fixed » Active

I haven't Filefield Meta active, so it can't fix anything for me.

Szy.

5ven’s picture

I have the same problem as you, openmind. The fix doesn't seem to have effect on the alt text and title. Only difference is, that the data is saved to the database, but not shown.

UPDATE: in my case, also disabling the filefield meta helped! Great :) Thanks for this tip!

drewish’s picture

Status: Active » Closed (duplicate)
ragavendra_bn’s picture

Version: 6.x-3.x-dev » 6.x-3.0-alpha3

As soon as FileField Meta is disabled, the Alternate Text, title and description content are all saving. The issue I am facing is:

Unable to see Alternate Text, title and description content in 'View' mode.

calefilm’s picture

Don't know if this is a solution for ya:

After you upload image in Imagefield and enable and add description...

Go to Views, add fields:
"Content: [Field name_a]"
"Content: [Field name_a] data" (mark descriptions, alt, or title)