Topic: Mulitple Galleries in existing html with customized buttons

I am trying to create multiple galleries in my website.  However, I want to be able to use my own flash buttons to direct the user to each gallery.  I have succeeded in getting one page to load Simpleviewer.  I have created four different simpleviewer galleries/files - four different imageData.xml files but I cannot figure out how to load the different galleries onto different pages.  I am not sure I am wording this correctly, but does anyone have any advice?  If I am using Dreamweaver MX to build my site, how do I load in four different imageData.xml files into my files and then script each of the four pages to distinguish with imageData file I want to pull from?
Sorry if this sounds elementary, I am learning as I go.  Thanks.

Re: Mulitple Galleries in existing html with customized buttons

OK let me have a try ...

I have done exactly this, but inside Flash. 

Firstly, you need to put each gallery in a different folder. This should contain the viewer.swf, imageData.xml, slides folder and thumbs folder.

By changing the xmlDataPath INSDIE flash (line 7, frame 16 of the viewer.fla) to something like    
    gXmlDataPath = "galleryA/imageData.xml"  and then output the viewer.swf, you will crate a swf that looks for the correct xml file.
Move this viewer.swf into that folder and you're away.
Repeat and rinse as necessary  wink [/b]

Alternatively, you can keep all images in the same folder and change imageData.xml name to galleryA.xml ... but there is a LOT of renaming to do to keep them all individual.  Much, much easier the first way.

So once this is done, point your particular button at www.yoursite/galleryA/index.html

The above is IF you have access to the flash code.  This is the easiest and most repeatable method I found.

Overwriting the path to the loaded XML file by setting the '_root.xmlDataPath' variable - as suggested by Felix is another version.  I just like to keep my viewer.swf specific to the particualr folders for later modification.

If you DON'T have access to Flash or the SOURCE CODE it's going to be a little harder.  As the viewer.swf dictates the path for the imagData.xml file location, just changing/creating the path within the xml file itself  doesn't work either.  The viewer.swf will look in the root directory [default], not the directory it was called from.

As the viewer.swf calls the xml data from within, the image path for folders & thumbs inside the xml files doesn't affect the outcome.

It is possible to create a work around, believe me I tried ... BUT (and that's a HUGE BUT) my suggestion ... buy the source code.  It will be WAY quicker.  Factor in the time it takes to reprogram your html to work, and it's complicated to do so, and you've already paid for the source code several times over.

Simple Viewer is inexpensive comapred to other similar products, and you can modify stuff to your heart's content then !!

Re: Mulitple Galleries in existing html with customized buttons

Alright other options provided by Felix:

change html code


there's a flash load_multiple_viewers.fla floating around his site somewhere. Ask Felix or I can probably dig it up somewhere.


Re: Mulitple Galleries in existing html with customized buttons

multiple galleries fla zip here