Solved

Slideshow on node level in Drupal?

Posted on 2014-12-01
2
233 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 10

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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
Since I am currently running into this issue right now as I type this, I though I would share my experiences with moving a ModX Revolution site from one server to another.  It is not an easy task, but can be accomplished rather easily. The first …
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…

710 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