Topic: Configure the config xml Path

Hi, Currently the config xml file is using Relative paths that relative to the HTML document that embeds the Juicebox gallery. Is there any options to configure the config xml file path pointing to some where else? so that i can reuse the same html, just include some logic to switch between different config for different gallery.

Re: Configure the config xml Path

You can point Juicebox towards a specific XML file using the configUrl configuration option in your gallery's embedding code. The configUrl path can be absolute or relative (to the page containing the embedding code).
For example:

<!--START JUICEBOX EMBED-->
<script src="jbcore/juicebox.js"></script>
<script>
new juicebox({
configUrl: 'http://www.example.com/gallery/custom.xml',
containerId: "juicebox-container"
});
</script>
<div id="juicebox-container"></div>
<!--END JUICEBOX EMBED-->

Re: Configure the config xml Path

TQ Steven! it's works!