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.
Comments
Comment #1
owen barton commentedI 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.
Comment #2
matason commentedThis patch fixes the problem, seems like the structure of the $element['#item'] array changed.
Comment #3
owen barton commentedI guess that counts as a review and test ;)
Comment #4
drewish commentedthanks, committed to HEAD.
Comment #5
drewish commentedthis was actually a duplicate of #306965: alt and title values always empty on nodes (non-Views)
Comment #6
openmind commentedHi 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
Comment #7
openmind commentedHi 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
Comment #8
szy commentedI haven't Filefield Meta active, so it can't fix anything for me.
Szy.
Comment #9
5ven commentedI 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!
Comment #10
drewish commentedi think this is a duplicate of #311436: Imagefield does not write in database Drupal 6.4
Comment #11
ragavendra_bn commentedAs 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.
Comment #12
calefilm commentedDon'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)