D7 with Ubercart. I am using the Product content type that UC created for me. I've added a regular image field to the content type, with unlimited number of images setting. For the manage display settings for the image field, I've chosen "Colorbox" as the display output. When viewing a product, the product images are shown, the thumbnails work and I can click the images and a Colorbox modal comes up.

PROBLEM: The images in a same product node are never grouped in a gallery, even though the images are all just image fields in that product node, nothing special.

I am cycling through all the Colorbox settings in "Manage Display" for the Product content type, no changes are happening.

With Firebug, looking at the images in the product node, they all have rel="gallery_34" where 34 is the node number. When I saw this I was surprised, because everything is screaming that it should work. I've used Colorbox in the past, and a matching rel was all it needed to form a gallery.

I don't know what else to investigate at this point.

K

Comments

frjo’s picture

Status: Active » Closed (duplicate)

My guess is that you was unlucky to download the Colorbox plugin during the time it had a bug that disabled image grouping via the rel attribute.

Just download the plugin again from http://www.jacklmoore.com/colorbox and the problem should be fixed.

Duplicate of http://drupal.org/node/1564820

Cablestein’s picture

Man, spent an hour trouble shooting, found a clue and saw your post... YOU'RE RIGHT

Just bad coincidence downloading a buggy version.

I've re-downloaded the official Colorbox and grouping works as usual.

Anyhow if it means anything, during my troubleshooting, grouping worked when I placed this at the bottom of my page.tpl.php:

jQuery('a.colorbox').colorbox({ width: '500', rel:'gallery-field_alternate_image_1' });