Create a gallery slideshow template by following these steps:
We're going to use the same JavaScript as we've used with the picture pop-up template for the content block. Go to jQuery lightbox at http://leandrovieira.com/projects/jquery/lightbox/ and download the jQuery lightbox ZIP file.
Create a new directory named
blocks/slideshow/templates/gallery
.From the downloaded jQuery ZIP file, extract the folders
images
,css
, andjs
but make sure there's onlyjquery.lightbox-0.5.min.js
in it—you have to remove the other JavaScript files.Create a new file called
view.php
in the directory. We're not going to copy the originalview.php
as we have to rewrite most of the code anyway. The following code block shows you the complete content of ourview.php
; it's a lot smaller than the default slideshow template:<div class="ccm-slideshow-gallery"> <?php defined('C5_EXECUTE') or die(_("Access Denied.")); foreach($images as $imgInfo...