Closed (fixed)
Project:
Shadowbox
Version:
6.x-3.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Aug 2009 at 20:13 UTC
Updated:
22 Dec 2011 at 21:00 UTC
I have a view that displays a gallery of image thumbnails. Setting up each of them to open in a Shadowbox works fine but I want to add a separate link somewhere on the page that starts a slideshow as if I clicked on the first image. In lightbox you can do:
<a href="#" onclick="Lightbox.triggerLightbox('lightshow', 'groupname');">Start Slideshow</a>
Can you do something like that with Shadowbox?
Comments
Comment #1
psynaptic commentedIf lightbox2 has this feature it should be easy to create a patch for this module. Can anyone provide one?
Comment #2
Alex Andrascu commentedsubscribing
Comment #3
Alex Andrascu commentedSolved my problem like this:
I've needed to open the shadowbox for the field_photo when you click on node title.
Can be shaped to fit other needs too. Hope it helps someone.
Comment #4
nicholas.alipaz commentedIt seems this is related to slideshowDelay, if it is set then the gallery can proceed to the next piece of content automatically. See http://www.shadowbox-js.com/options.html
We could create some sort of interface to the option in the administration, but I am not completely sure how/where it would make most sense.
Try:
Where the photo linked is part of multiple images all with the same shadowbox attribute.
Comment #5
manfer commentedIn shadowbox module configuration we can configure the slideshow delay. If it is set to a positive number the slideshow will autostart. This will be a global option for every gallery.
Then to create a gallery and a text link that opens that gallery would be something like this:
We have to be sure to include this code in a post using the Full HTML filter or otherwise with the filtered HTML will fail.
If we don't want the autostart slideshow option globally then the only way to proceed is making more in depth use of the shadowbox library functions. Probably using buildObject to set options (slideshow delay) to that specific gallery or setup.
Take a deeper look into the shadowbox library API functions.