@mdavidangst
This functionality already exists as the presetURL option, a description of which can be found here: http://simpleviewer.net/simpleviewer/pr … .html#html
More information on using 'Presets' can be found here: http://simpleviewer.net/simpleviewer/pr … ml#presets
In order to point a gallery towards a presetURL, you would use embedding code such as the following:
<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars={};
flashvars.presetURL="preset.xml";
flashvars.galleryURL="gallery.xml";
simpleviewer.ready(function () {
simpleviewer.load("sv-container", "100%", "100%", "222222", true, flashvars);
});
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->
The above example would format the gallery using the layout options found in 'preset.xml' but would display the images listed in 'gallery.xml'.
(Please note that if your XML file is named 'gallery.xml' and is located in the same directory as the HTML file into which the gallery is embedded, then the line flashvars.galleryURL="gallery.xml"; is not required. It is included above for the sake of completeness.)
Steven Speirs
SimpleViewer Support Team