Solved

Slideshow on node level in Drupal?

Posted on 2014-12-01
2
203 Views
Last Modified: 2014-12-04
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
Comment
Question by:GeertWillemarck
2 Comments
 
LVL 9

Accepted Solution

by:
oliverpolden earned 500 total points
ID: 40474531
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
 

Author Closing Comment

by:GeertWillemarck
ID: 40480535
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now