Topic: Change url gallery.xml

The web example of Simple Viewer pro has the gallery.xml in the root where index.html also is.

But I would like to define the path to gallery.xml in index.html. But how?

Any help is really appreciated.

Last edited by felixior (2013-07-11 14:42:12)

Re: Change url gallery.xml

You can point a SimpleViewer gallery towards a specific XML file using the galleryURL configuration option in your gallery's embedding code, for example:

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