In the Head of the template I have the following editor entered fields to give the name of the folder for the images to be used and then an list of the images to accessed in a specific order. These are declared as javascript global variables.
Code: Select all
<__script__ type="text/javascript">
var gallery_images_folder = '{content block="gallery_folder" label="Gallery Folder (no quotes)" oneline="true" }';
var gallery_images = [{content label="Gallery Photos - file list (quotes and comma separated)"}];
</__script>
<__script__ type="text/javascript" src="scripts/kb-slideshow-controls.js"></__script>
Any suggestions for a smarter (only small pun intended) solution greatly appreciated.
...also ... is there a neater solution for passing 'Content Block' data to javascript.
Many thanks.
Chris
PS: Forgive the crudity of beginners solutions above, just trying to get a solution anyway I can and learn on the way.

PPS: Using version 1.8.2 and love it.