I have a views gallery setup, where 50 or so images get shown. I have them setup with a colorbox trigger in the view, so the image shows in a colorbox when clicked on.
Since I dislike the use of a normal pager (1,2,3,back,next) I wanted to use an infinite scroll (http://drupal.org/project/views_infinite_scroll)
When I set the pager to use 12 images, they display fine and colorbox displays the gallery correctly with back / next and image count. When I scroll down past the 12 images, the next 12 show, and when I click on images, colorbox then shows 24 images as expected. Only, when I get to image 13, it shows image 1 in the colorbox instead of image 13.
Comment | File | Size | Author |
---|---|---|---|
#4 | views_infinite_scroll_fix-1389722-4.patch | 424 bytes | elaman |
Comments
Comment #1
WebWalker3D CreditAttribution: WebWalker3D commentedAny thoughts on this yet?
Comment #2
lsolesen CreditAttribution: lsolesen commentedDo you have caching enabled for that particular view? Did you solve your issue?
Comment #3
jmix CreditAttribution: jmix commentedHi, i have the same problem with a simple infinite-scroll "pager" (this one in #2 > http://drupal.org/node/1643486).
I'm not a drupal expert, but it seems we have to call colorbox script again after new items are loaded. I just don't know how to do that...
Isolesen, are you using D6 or D7 ? Have you found any solution ? thanks !
Comment #4
elamanCreated patch to which makes Colorbox work with Views Infinite Scroll.
Tested with image fields.
Comment #5
WebWalker3D CreditAttribution: WebWalker3D commentedComment #6
urashima82 CreditAttribution: urashima82 as a volunteer commentedI've got the same Isssue with the 7.x-2.12 version.
It is due to the token generated at the end of the colorbox rel (or data-colorbox-gallery) attribute.
I solved my problem by adding this JS code in my custom theme folder.
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous at Cheeky Monkey Media commentedI'm using colorbox 7.x-2.13 and colorbox library 1.5.14.
With this combination, I'm not seeing any issues after the next page is loaded and navigating through the images in the gallery.
Comment #9
eloivaque#6 Work for me.
Comment #10
eloivaque#6 it's not work when click first to colorbox image and then click to infinite scroll. this next code works for me.
Comment #11
Neslee Canil PintoPatch Failed to apply, needs reroll
Comment #12
Neslee Canil Pinto