Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
scarvajal CreditAttribution: scarvajal commented+1
It would be great if we can have, in Image field options (CCK) options of Colorbox config, a new option "whole gallery".
Comment #2
David Stosik CreditAttribution: David Stosik commentedSadly, I think this is just impossible, considering how Colorbox works (AFAIK, it takes the images that are in the current page, with specific classes).
Comment #3
Flying Drupalist CreditAttribution: Flying Drupalist commentedI think you can preload the next page images and then recreate the colorbox when needed.
Comment #4
Todd Zebert CreditAttribution: Todd Zebert commentedsubscribe - 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.
Comment #5
frjo CreditAttribution: frjo commentedYou 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.
Comment #6
Todd Zebert CreditAttribution: Todd Zebert commented@frjo right, thanks, any thoughts on implementing the "remaining" part so we don't get duplicates?
Comment #7
frjo CreditAttribution: frjo commented@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.
Comment #8
lsolesen CreditAttribution: lsolesen commented