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
Solved

Slideshow on node level in Drupal?

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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Index on a Table 6 25
Question about traversing a tree using jQuery 7 33
Responsive Font Size 6 29
2 separate CSS animations 2 17
In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
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…

829 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