Does anyone know how to make the image descriptions (image.module and image_gallery.tpl.php) show with the thumbnails?
Since it shows up with the preview image, I tried adding $content.= '<div class="description">'. check_output($gallery->description) ."</div>\n"; below this line in image_gallery.tpl.php:

$content .= l(image_display($image, 'thumbnail'), 'node/'.$image->nid, array(), NULL, NULL, FALSE, TRUE);
$content .= '<h3>'.l($image->title, 'node/'.$image->nid)."</h3>\n";

But I just got "n/a" where the description should be. I also tried changing $gallery to $image and got the same. I'm at a loss.
Any ideas?

Thanks,
~M

Comments

nevets’s picture

I think the field holding the description is called body.

michellex’s picture

That worked! Thank you so much! I've been trying to figure this out all week! :)

www.steelveils.com