Create a gallery slideshow template by following these steps:
We're going to use the same JavaScript as we used with the picture pop-up template for the content block. You can use the file you've previously downloaded or go to jQuery lightbox at http://leandrovieira.com/projects/jquery/lightbox/ and download the jQuery lightbox ZIP file again.
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 thegallery
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...