It sounded like colorbox did what I wanted; there are settings options like 'per post gallery' and 'per page gallery'.

I imagined in tinymce uploading a few images to a node using cck imagefield and using 'insert' to place their thumbnails inline. Then, users clicking on one thumbnail, it loading in colorbox, and they could subsequently press 'next' and 'previous' buttons to navigate through the handful of images that are in the node.

Everything works except the last part. Only single images load into colorbox. To load another, you have to leave colorbox and click on another thumbnail, and further, there are no navigation buttons or image count shown.

How do I 'string' images together to make a colorbox gallery for the node?

Thanks.

Comments

chianti’s picture

Title: I don't understand how to make a gallery » update

Update:

I have the cck imagefield hidden so that only the inserted inline images can be seen. When I unhide the cck field so the images are displayed at the bottom of the node, *then* I can see that *these* images are linked together to form a gallery.

So, colorbox does work with the insert module and inline images, but only for single images.
If you want a proper gallery with next & prev navigation, you need to display the cck field.

Is there really no way for colorbox to make a gallery from the inline images?

chianti’s picture

Title: update » I don't understand how to make a gallery

Update 2:

I found out that lightbox2 now works with the insert module.
Insert allows you to add a css class.
And lightbox2 is then able to group images in the same node using that class.

It's a pity that colorbox doesn't have this feature.

frjo’s picture

Colorbox use the "rel" attribute to group images in a gallery. All images with the same "rel" value will be in the same gallery.

On the Colorbox configuration page you find a "Insert image gallery" setting. Set that to "Per page gallery" and all the images the same page will be in a gallery.

To get more control you can edit the "rel" value manually in each post.

chianti’s picture

> Set that to "Per page gallery" and all the images the same page will be in a gallery.

I noticed by default that rel is set to 'all', which is good because it can't be set when using wysiwyg.
But even with the rel set the same, the page per gallery setting didn't work.

I tried lightbox instead but didn't like the final result anyway, so I'm back to colorbox, with the gallery photos all at the bottom of the node rather than inline. One thing I've learnt using Drupal is not to fight with anything, but simply change your plan and work around stuff, because Drupal beats you every time.

frjo’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

tchopshop’s picture

I'm having the same problem. The per page gallery is not working.
thanks!