As a hold-over from when there was no built-in caption module, pop-up overlays (lightbox, colorbox, etc.) display the title of the image. Instead, they should be displaying the caption.

If an image has the title "Image of the Titanic" and the caption "This was the deadliest peacetime maritime disaster in history at that time," then when the node is saved, the latter will be displayed as the caption. If you click on the image to see the enlarged version, however, you suddenly see the title rather than the caption.

Since this is an unexpected UI issue, I'm marking this as a bug, even if it's relatively minor.

Comments

rootwork’s picture

The fix is really simple. I'm using lightbox but I assume it's similar for the other integrations:

wysiwyg_imageupload_lightbox.module, line 118:

- 'title' => $img_obj->title
+ 'title' => $img_obj->caption

I don't have time at the moment to download a copy of the module, create a branch, apply the code and then get the patch (which is what's required to generate a patch now -- I love Git in all ways but this one!) but there it is. I'll try to circle back to this at some point in the future and post a real patch if it hasn't been done by then.