Is there a way to use Colorbox to have a single thumbnail in an article that when clicked, opens a slideshow of images in Colorbox? I've been through the excellent screencasts but the examples shown there have all the images displayed on the article page. Is there a way to do this in Colorbox?

Comments

hutch’s picture

<a href="img1.jpg" class="colorbox" rel="mygallery"><img src="thumb.jpg"></a>
<a href="img2.jpg" class="colorbox js-hide" rel="mygallery">img2.jpg</a>
<a href="img3.jpg" class="colorbox js-hide" rel="mygallery">img3.jpg</a>
<a href="img4.jpg" class="colorbox js-hide" rel="mygallery">img4.jpg</a>

Only the first link will show, the class 'js-hide' keeps the rest out of sight and rel groups the images for Colorbox.

Todd Zebert’s picture

subscribe

Todd Zebert’s picture

subscribe

johan56’s picture

go to colourbox module
admin/config/media/colorbox

slideshow setttings

Anonymous’s picture

Thanks Hutch. That worked great!

Anonymous’s picture

Thanks for your reply @johan56, I looked for slideshow settings and didn't see anything. Perhaps it was removed in beta 4? (I've upgraded since my original post).

gsontag’s picture

Ok guys, I am lost... I understand adding the class to hide the thumbnail (and I can get it to work with firefox and firebug) however I can't figure out how to change the code on the actual page! I've been searching for quite a while and cant find anything!

Any help would be very welcome!
Thanks
-G

Anonymous’s picture

@gsontag, I just pasted the code in the article text. Ideally I'd love to create a content type field that stores all the images but I'm not quite there yet. Hope that helps.

hutch’s picture

@retiarius, have a look at Imagepicker, you can group uploaded images and show the group as a gallery using colorbox from a link in a block.

tuthan’s picture

Title: Single Thumbnail That Opens a Colorbox Slideshow? » How do to play a swf file in colorbox?? the code??
Issue tags: +colorbox, +#D7

How do to play a swf file in colorbox?? the code??

frjo’s picture

Title: How do to play a swf file in colorbox?? the code?? » Single Thumbnail That Opens a Colorbox Slideshow?
Issue tags: -colorbox, -#D7

@tuthan, please create your own issue and don't hijack this one.

tuthan’s picture

Yeah yeah sorry sorry, already I created my own issue but nobody help me, nobody see it.

hessam61’s picture

I love the theme and overall look of colorbox, but I wish it had slideshow support similar to Lightbox2 module. I am, too, trying to have one thumbnail that runs a slideshow for the entire gallery.

rooby’s picture

Thanks for the info hutch.

With a little theming using your method in #1 I now have a fancy view that displays a list of images, which is each it's own slideshow.

frjo’s picture

Status: Active » Closed (duplicate)