XML

Hey folks,

I'd like to print an XML file of the database contents that will be read into a custom flash gallery that I'm using. It will have a basic structure, something along the lines of:

<title>Foo</title>
<image>
<location>urltoimage</location>
<width></width>
<height></height>
</image>

And it would repeat.

I'd planned on using the template functions, such as the album while loop, getAlbumTitle() (or whatever) and images while loop to iterate through each. However, I think my code is getting borked by context. I was editing index.php within the default theme (for now) to print out some proper XML.

How would I go about adding an xml.php file? I'm ok with just editing index.php and having it print XML since zenphoto's XHTML gallery will never be public. It will only be viewed via flash.
How do I avoid screwing up the context for the album loops... etc.

Thanks!

Comments

  • Take a look at the simpleviewer themes and follow their lead - rather than a xml php file - they made adjustments to the 'album' php files
Sign In or Register to comment.