Topic: How to set the gallery.xml PATH

Hi,

i call the SimpleViewer gallery in diferents pages of my web site, but i need set diferents Gallery.xml file for each of my pages. Do u have any method to set the path of each XML?

Thanks

Re: How to set the gallery.xml PATH

flashvars.galleryURL = "/media/gallery.xml";

just add that of course with your path.

Re: How to set the gallery.xml PATH

You will also need to add the flashvars Embed Code Parameter to your SV.simpleviewer.load() line so that the galleryURL is used.
Your embedding code may look something like:

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.galleryURL = "gallery.xml";
jQuery(document).ready(function () {
SV.simpleviewer.load("sv-container", "100%", "100%", "222222", true, flashvars);
});
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->
Steven Speirs
SimpleViewer Support Team.