How to keep lightbox slideshows from showing all photos from multiple galleries on a listing page?

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
pkcho's picture

I am using Lightbox slideshows to display photos from galleries on a site. It works perfectly when there is only one gallery on the page, but when a page is a listing page with multiple galleries, it doesn't just show me the photos in that gallery, but all the photos on the page, from every gallery listed. Instead of 5 photos, a slideshow starts with 70 something photos.

Is there some way to force a slideshow to only display photos from that single gallery so that: 1) I keep the galleries distinct and 2) I can speed up the display of photos (I'm supposing that having to display 70 something photos slows things down more than having to display 7).

Any help would be greatly appreciated. Thank you.
Joe

Comments

You can create an argument

Sknight17's picture

You can create an argument for the page with the Gallery Name being the argument. You can then create a menu of gallery names that link to their view.

A Digital Entrepreneur and Technical Consultant.
Founder, CEO of FoggyTrail

Thank you for your input.

pkcho's picture

Thank you for your input. Using arguments makes sense. I'm not great with using arguments, but this is a good start and I'll play with it.

Thank you,
Joe

Using the 'rel' tag

just.andy.shilton's picture

Hi mate,

I hope this helps as I had the same issue a while back with a customer of mine.

I'm assuming you are using the Lightbox2 module: http://drupal.org/project/lightbox2

You can manipulate the 'rel' tags to group your galleries/slidshows together. Using lightbox2 in slideshow mode uses the 'lightshow' call, but if you give your group a name you can keep the slideshows as individual ones.

For example:

<a href="images/image-1.jpg" rel="lightshow[roadtrip]">image #1</a>
<a href="images/image-2.jpg" rel="lightshow[roadtrip][caption 2]">image #2</a>
<a href="images/image-3.jpg" rel="lightshow[roadtrip][caption 3]">image #3</a>

In the above example, the slideshow is called 'roadtrip'. You can then post another set of images with a different name and they will become a different slideshow.

For more help, have a look at the README file included in the download.

Andy.

Or just Lightbox configuration

bauhaus's picture

In Lightbox2 configuration /admin/settings/lightbox2
under CCK display settings you can set grouping by node id. Then 2 blocks with 2 different galleries on one page will be shown as separate slideshows.

In Drupal 7 is slightly

marcopanichi's picture

In Drupal 7 is slightly different:

  1. Configuration > User Interface > Lightbox 2
  2. Group display settings > Group by field name and node id

Newspapers on Drupal

Group organizers

Group categories

Topics - Newspaper on Drupal

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week