This project is read-only.

Multiple Data.xml files

Sep 17, 2008 at 9:07 PM
I would like to have multiple data.xml files in various subfolders (one for each unique gallery) and then have the slide show navigate to the appropriate Data.xml file based on a URL parameter.

I can grab the URL parameter easy enough and set up a switch statement to change the path to the Data.xml file.  But, my question is:

Does anyone know of a way or where to change the call to the Data.xml file? 

I'm wondering if I could modify the DataProvider.js file to accomplish this...? 

Any thoughts or suggestions would be appreciated.  Thanks.
Sep 18, 2008 at 1:51 PM
Okay, I was able to modify the dataProvider tag in the Configuration.xml file to point to another location to get the data.xml.

Now, I guess I'll use XmlTextWriter() to create a new Configuration file on the fly based on a URL parameter. 

I'm not particular thrilled with this possible solution because I have to change the security setting in that directory to allow write back to the XML file. 

Guess it will have to do for now...