Closed (duplicate)
Project:
ImageField
Version:
6.x-3.0-alpha2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Sep 2008 at 13:33 UTC
Updated:
28 Nov 2008 at 22:29 UTC
All the alt and title tags seem to be empty. I've tried using Garland and it's also empty so it is not theme related. Having looked through the code I've pinpointed the problem and have created a patch. Basically when the image is getting themed, it uses $item['alt'] when the data is in $item['data']['alt'].
| Comment | File | Size | Author |
|---|---|---|---|
| imagefield_formatter_alt_title.patch | 635 bytes | kelvincool |
Comments
Comment #1
kelvincool commentedComment #2
gorbeia commentedThe patch works OK for me, Thanks
Comment #3
libeco commentedI have been having this problem for a while, it is discussed here: http://drupal.org/node/299329
I didn't use the patch, but simply replaced the line and it works perfectly.
Thanks!
Comment #4
scottrigbyGood on nodes, doesn't help on view displays...
This works well when viewing the imagefield images (formatted using imagecache) in the node itself... However, I still see alt="a" title="a" when the same imagecache formatted images are being called by Views. Has your experience been different, or do you have the same problem?
thanks for any advice :)
Scott
Comment #5
gorbeia commentedThese are two different problems. The problem you have with views is discussed in the bug entry pointed by libeco above.
Comment #6
libeco commentedI have the same problem with views. Neither this patch or the solution supplied in the other mentioned topic helped me from not getting the a in views.
Comment #7
alexanderpas commentedPatch is good.
Views problem is unrelated to this patch.
Comment #8
scottrigbyAre any of you aware of an existing issue addressing the Views problem? I haven't found one so far, but the Views issue queue tends to get kind of bloated so it's not always easy to tell... Thanks for your suggestions on this –
...and yep, other than the Views issue, this patch works like a champ.
Comment #9
alexanderpas commentedfor the 'a' problem, you can look here http://drupal.org/node/299329
Comment #10
pieterbezuijen commentedWhen enabling the user to fill in the 'alt', I get the 'alt' in the full node view. Using the solution described in #299329: No display of alt or title with images - Simple Workaround this fixes my views too.
The only thing, I prefer the user doesn't need to fill in the 'alt', because we're already asking quite some information. When disabling the 'alt' to be filled in by the user, the 'alt' doesn't ever show, even though the default alt is filled in.
Has this anything to do with this bug? Tnx.
Comment #11
alexanderpas commentednot related to this bug, please file as a seperate bug, thanks.
Comment #12
scottrigbyHi Alexander
re: #9 --- yep --- the patch at that link fixes the views issue... and this one fixes the non-views issue -- we're all set! thanks ;)
Scott
Comment #13
alexanderpas commentedimproving title.
Comment #14
zoliky commentedI confirm, the patch is good.
Comment #15
openmind commentedHi Guys,
I've run the patch but still am having no luck. I'm using Content Construction Kit (CCK) 6.x-2.1 which is the latest version.
I've had a quick peek into the database in the content_field_image table.
field_image_data doesn't seem to be storing any of the alt or title content??
a:5:{s:3:"fid";s:1:"3";s:5:"width";i:642;s:6:"height";i:360;s:8:"duration";N;s:11:"description";s:0:"";}
Any help or rough ideas of where to look would be greatly appreciated.
Thanks again,
Chris
Comment #16
drewish commenteda duplicate #332025: Custom Alternate Text, title and description content not shown when editing node with the same fix was committed.