Topic: gallery.xml

I am running simpleview on website and I am trying to add another gallery using tiltviewer.


The problem is that they are both calling from the same gallery.xml file.  I renamed my tiltviewer file to gallery2.xml but how do I change the tiltviewer index page so it calls this file instead of gallery.xml

Last edited by redflex (2011-06-22 13:35:56)

Re: gallery.xml

You can use the xmlURL option to point TiltViewer towards a specific XML file.
See 'XML Gallery Options' on this page: http://simpleviewer.net/tiltviewer/supp … s.html#xml
eg:

    <div id="flashcontent">TiltViewer requires JavaScript and the latest Flash player. <a href="http://www.macromedia.com/go/getflashplayer/">Get Flash here.</a></div>
    <script type="text/javascript">
    
        var fo = new SWFObject("TiltViewer.swf", "viewer", "100%", "100%", "9.0.28", "#000000");            
        
        // XML GALLERY OPTIONS
        // To use local images defined in an XML document, use this block        
        fo.addVariable("useFlickr", "false");
        fo.addVariable("xmlURL", "gallery2.xml");
        fo.addVariable("maxJPGSize","640");
        
        //GENERAL OPTIONS        
        fo.addVariable("useReloadButton", "false");
        fo.addVariable("columns", "3");
        fo.addVariable("rows", "3");

        // END TILTVIEWER CONFIGURATION OPTIONS
        
        fo.addParam("allowFullScreen","true");
        fo.write("flashcontent");            
    </script>
Steven Speirs
SimpleViewer Support Team.