Hello,

I am setting up an image gallery using CCK and Views, as described here. This results in a Thickbox view if the gallery thumbnail is clicked, and shows the full node when the title is clicked (in case users don't have Javascript enabled).

I've renamed the body field as "caption" so the client can enter captions for the photos there when uploading the images. But when users are looking at the images in the Thickbox view, the captions don't show up. I know an optional title field can be enabled and they could paste in their caption there as well. In addition to being a clumsy extra step, I can't get it to work after checking "Enable custom title text".

This trouble prompted me to think of a better solution anyway: Just have Thickbox automatically use the body text as the image's caption. I've looked all over the forums, and seen similar threads, but nothing I've found addresses this question exactly. I'd really appreciate hearing if this is possible and how it could be done.

Thanks,

Jim

Comments

frjo’s picture

Assigned: Unassigned » frjo
Category: support » feature
Status: Active » Postponed (maintainer needs more info)

Added a feature in 6-dev to check if the title is empty and then use description, alt or the node title in that order instead.

Please try it out and report back here.

frjo’s picture

Version: 5.x-2.0 » 6.x-1.x-dev
jimmb’s picture

Hi - thanks for the response (and sorry for the delay in getting back on this). I have uploaded the 6.x-1.x-dev version..... As my "gallery_image" content type now just has a Title and Imagefield, my original post isn't quite what I currently need. But I noticed your reply said it would also default to node title if nothing else was available. I'm happy to report that's exactly what it did! Perfect :)

Thanks for adding that to the Dev version! Cheers,

Jim

frjo’s picture

Status: Postponed (maintainer needs more info) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.