Topic: Paths/ folders/ argh...

I just purchased the latest build.

I want to have 4 different galleries each in their own folder.

folders will be gallery1, gallery2, gallery3...  Their images, thumbs, etc will live in it's respective folder.

on the top level (above those folders) i want to have the html pages that will utilize those galleries.

How do i call the gallery/files from gallery1.html if that page lives one level ABOVE its files?

i can't seem to figure it out. 

thanks

Re: Paths/ folders/ argh...

i forgot to mention - i'd rather not use the iframes method.

i'm trying this with no luck

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
$(document).ready(function () {
                           
                           
            var flashvars = {};
            flashvars.baseURL="gallery1/"
            flashvars.galleryURL = "gallery.xml";

                           
SV.simpleviewer.load("sv-container", "100%", "100%", "222222", true);
});
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->

Re: Paths/ folders/ argh...

You could use:

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

... without using the baseURL option, but note that all relative paths in the xml file are relative to the HTML file containing the swf (not the xml file).
Also, depending where the svcore folder is, you might need to consider this:
http://simpleviewer.net/simpleviewer/su … tml#svcore

Steven Speirs
SimpleViewer Support Team.

Re: Paths/ folders/ argh...

Thanks - i'll try that.

So i would use something like this?

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

Can i use only one svcore folder?  or should i have a folder in each 'gallery' folder?

Re: Paths/ folders/ argh...

For the flashvars to be picked up, you'll need to use the code:

SV.simpleviewer.load("sv-container", "100%", "100%", "222222", true, flashvars);

Can i use only one svcore folder?

Yes. Just follow the instructions here: http://simpleviewer.net/simpleviewer/su … tml#svcore

Steven Speirs
SimpleViewer Support Team.

Re: Paths/ folders/ argh...

ahhhh!!!

ok - thanks.

now - if i wanted to simply put multiple .xml files in one folder - how to i edit the embed code to use a custom xml name?

Re: Paths/ folders/ argh...

got it.  thanks!