I have installed NextGen Gallery plug in and am using it to create a slideshow in each of the four boxes on this site http://www.surreycurtains.com.
I want each slideshow to link to a relevent page.
Ehthisham tk answers:
I think its not possible to get link for each image..
Looking at the source code, you are using this function right?
<?php echo nggShow_JS_Slideshow($galleryID, $width, $height) ?>
With this function, nextgen plugin developer create the slideshow including the js initialize code and fetch the image to the page using ajax. We can see loading image before the slideshow start.. :D
You can see the ajax code in nextgen-gallery/js/ngg.slideshow.js and the php function to return the db query from ajax request in /nextgen-gallery/xml/json.php, where you can see on line 89 it connected with get_gallery function in nggdb class within /nextgen-gallery/lib/ngg-db.php line 216.
In js we could alter it so it will include the link but as you can see it from the ajax request in only return image address to be used within the slideshow, thus there are no page url or other data that that we can use to point the image to correct address.
Its not an easy task to do it, it might get error in client site, since default structure will be use by the slideshow plugin (jQuery Cycle) or error server side itself.
Hope this help.