• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 281
  • Last Modified:

Slideshow on node level in Drupal?

Hi Experts,

On my Drupal site I want to create a kind of slideshow on node level. I have a content type with a single image field, but this field can hold multiple images.
When a node of that content type is show I would like to show only the first image at full size; the rest of images are shown as thumbnails. When the visitor clicks on one of the thumbnails the initial large image  should be replaced by the thumbnail image.
Two bonuses are possible:
- the images of node cycle like in a slideshow
- the large image is shown even larger in colorbox when the visitor clicks on it.

I use Views Slideshow a lot to achieve a similar behavior but then the images are saved in several nodes with the same content type.
With only the Colorbox module I come close to my goal. I can show the large image and the thumbnails, but when the user clicks on one of the thumbnails the original large picture is not replaced. De thumbnail picture is shown in a colorbox and that is not what I want.

Do you have any ideas how my day can be saved? Thanks in advance.
0
GeertWillemarck
Asked:
GeertWillemarck
1 Solution
 
oliverpoldenCommented:
Hi there,

I've solved pretty much exactly this on one of my clients' sites at www.peerrugs.com.

The only issue is mine is a bit more complicated because I've set it up so my client can choose to turn on and off some extra processing for the images. To do this I'm using formatter_field and formatter_field_preset. You don't need these but my configuration is stored within these modules.

Saying that, it should be pretty simple. You will need:
Appropriate image styles for thumbnails, main image and zoomed image sizes

Next:
Go to your content type and click on "Manage Display"
Find your image and select the jQuery gallery format
Click the cog to the right and set: slide style, thumbnail style, Link slides to the full image, set full image style, jQuery modal should be Lightbox 2, how to link to the full image: On slide click

Enjoy!
Oliver
0
 
GeertWillemarckAuthor Commented:
Thank  you Oliver, you're solution works like charm.
I didn't use lightbox because I prefer Colorbox, but GalleryFormatter is also compatible with Colorbox.
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now