Where there's an image gallery, it would be nice if the grouping extends to second, third, etc views pager pages, so the user doesn't have to click out of the colorbox, then click next, and reopen the colorbox again.

Comments

scarvajal’s picture

+1

It would be great if we can have, in Image field options (CCK) options of Colorbox config, a new option "whole gallery".

David Stosik’s picture

Sadly, I think this is just impossible, considering how Colorbox works (AFAIK, it takes the images that are in the current page, with specific classes).

Flying Drupalist’s picture

I think you can preload the next page images and then recreate the colorbox when needed.

Todd Zebert’s picture

subscribe - this is JUST what I'm looking for!

I was thinking perhaps somehow reference all images on each page, but css hide all but the ones we wanted displayed. Not sure that's possible either, but crossed my mind.

frjo’s picture

You need to add all the images to the first page one way another. This is the only way the Colorbox plugin can find them.

My first try would be to add all the remaining images in a views attachment and displaying them with a 1x1 pixel image style. A display:none: in the css as well most likely, or better yet add a class "js-hide" to the links.

Todd Zebert’s picture

@frjo right, thanks, any thoughts on implementing the "remaining" part so we don't get duplicates?

frjo’s picture

@Todd Zebert, simply tell the views attachment to display nodes from an offset. If the views page shows node 1 to 10 the views attachment starts from offset 10.

lsolesen’s picture

Status: Active » Closed (fixed)