Thickbox - How to show ALL images in a 'paged' view

Joined: 12/14/2008
User offline. Last seen 1 year 11 weeks ago.

Hi,
I am making an image gallery using the methods outlined in Jeff Eaton's Photo galleries with Views Attach.
I added Thickbox following Rob Safuto's Image Gallery Enhancements screencast.
THIS IS AWSOME! Works great, easy to setup with REALLY slick navigation...

BUT....

If the view has the pager enabled, Thickbox only navigates through the images on the current page.
Can it be configured to navigate through ALL images/nodes that are contained within the pager list?

Thanks for the help!
(Note, I also posted this in the Thickbox issue queue.)

Joined: 09/09/2008
User offline. Last seen 1 day 9 hours ago.
Yes, if you're willing to spend the necessary resources

The way Thickbox, and Lightbox, work is by examining the currently displayed page's code via Javascript code and modifying it to invoke their functions.

What you're seeing is the result of only one page being available to that code.

A couple of ideas come to mind to provide this function:

  1. Someone with a lot more Javascript/AJAX knowledge than I could process the current page, retrieve the subsequent pages' image information and build the requisite structures.
  2. Instead of using one view, you could use a panel (Panels module) and two views. Your first view would work just like the one you have now and be visible. The second view, similar to the first, would produce the necessary links to the additional images, but simply not display them.

    Here's an example of an image being displayed as a thumbnail linked setup for Lightbox:

    <a href="/files-ck/2006/DSCN2261.JPG" rel="lightbox" class="thickbox"><img src="/files-ck/2006/DSCN2261.JPG" height="250" width="188" /></a>

    Here's the same example without the thumbnail actually being displayed:

    <a href="/files-ck/2006/DSCN2261.JPG" rel="lightbox" class="thickbox"></a>

    It's important that the rel specification be the same for all of your images.

Now, how you handle this on the subsequent pages is up to you to figure out.

Hope this helps,
Curt

Joined: 12/14/2008
User offline. Last seen 1 year 11 weeks ago.
Thanks, option 2 is promising, but...

What you're seeing is the result of only one page being available to that code.

Yes, I thought as much. Like you said, I would need to add some method to add the 'extra' code to each page.

I started toying with option #2, but instead of using panels, I used Views Attach, which I am already using.

I created a display with an 'offset' (under Items per Page) equal to the number of items per page so the second view would show "the rest" of the paged content.

This could work GREAT when displaying the first page, but if you are on other pages, it does not work well.

I would really need 2 additional views that can know which page I am on.
The first view would be above the page and provide the hidden links to the images BEFORE the current page
The second view would be below the page and provide hidden links to the images AFTER the current page.

Any thoughts on how to do this?
I am not a developer and have LITTLE knowledge of php...