Topic: Gallery XML not found when using universal playback + dynamic XML page

Hello. I am using Expression Engine and creating the gallery XML file dynamically to accommodate multiple galleries. It is working fine with Flash, but the non-flash player does not find the XML file. In other words, when I view the page with a browser that does not have Flash, I get the message "Gallery XML not found". Can you please tell me if my configuration is wrong?

Here is the page: http://diablogrande.com/index.php/image … o_gallery/

And here is an example of the gallery file: http://diablogrande.com/index.php/site/gallery_xml/89

And here is the embed code I am using:

<script type="text/javascript">
var flashvars = {};
flashvars.galleryURL = "http://diablogrande.com/index.php/site/gallery_xml/89";

jQuery(document).ready(function () {
SV.simpleviewer.load("sv-container", "755", "550", "FFFFFF", true, flashvars);
});
</script>
<div id="sv-container"></div>

Thanks for your help.

Re: Gallery XML not found when using universal playback + dynamic XML page

Does your dynamic code have a content type? For PHP it would be:

<?php
header ("Content-Type:text/xml");
?>
Mike Richards
SimpleViewer Support Team.

Re: Gallery XML not found when using universal playback + dynamic XML page

Ah ha. That makes sense. I will give that a try.

Re: Gallery XML not found when using universal playback + dynamic XML page

That did the trick. Thanks for the tip. If anyone else is using Expression Engine and SimpleViewer, the trick is to designate the gallery xml template file as an XML template (not a Web Page template) and the will send the proper headers.