Migrating to G2 from custom app

jacljason

Joined: 2007-07-30
Posts: 1
Posted: Mon, 2007-07-30 14:48

I am implementing G2 on my website. I had a written a gallery app myself before and have 1400 or so images in 100 or so albums. It's a simple format. An album has a title, and each image within the album has a caption. It's all fed by this XML "db":

<?xml version="1.0" encoding="UTF-8"?>
<images>
<gallery>
<title>Start of Summer 2007</title>
<dateadded>2007-06-27</dateadded>
<image>
<file>2007-0682.jpg</file>
<caption>Ahhh Refreshing</caption>
<type>image</type>
</image>
<image>
<file>2007-0683.jpg</file>
<caption>Playing at Wiggly Play Center</caption>
<type>image</type>
</image>
</gallery>
</images>

<images> is the entire doc.
<gallery> would be the album, title the name of the album
<image> is the image within the album.

I'd like to "import" this XML file and images into G2 without too much effort. I can move files around etc.

Ideas? I see there is a scripting capability that I could use, but I am not a php programmer by any means, and I didn't see sample code that would create an Album and then feed it the items as well.

Thanks in advance

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Fri, 2007-08-03 22:35

you could look into the "galleryadd.pl" script. If all the metadata that you have is titles and captions, I think that you can hack something together with that.