Solved

Slideshow on node level in Drupal?

Posted on 2014-12-01
2
198 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
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…

705 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

21 Experts available now in Live!

Get 1:1 Help Now