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
You are not logged in. Please login or register.
SimpleViewer Forum → SimpleViewer v2 → 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
flashvars.galleryURL = "/media/gallery.xml";
just add that of course with your 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 -->
SimpleViewer Forum → SimpleViewer v2 → How to set the gallery.xml PATH
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 5 official extensions. Copyright © 2003–2009 PunBB.