WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: NextGen Gallery] Extended xml (6 posts)

  1. kimdolleris
    Member
    Posted 4 years ago #

    Hey!

    I'm making a site at the moment with the lovely plugin: NextGen gallery.

    To this site i'd like to make a gallery flash of my own - a flash which are able to shuffle between gallerys/albums and images within them.

    I've been googling around 'caus i thought that i clearly couldnt be the only one. I havent however been able to find a solution.

    I've been trying all sorts of ?gid='s but can't seem to get a complete extended XML

    This is what i ~ would love to have as an output ... eg.

    <nextgen>
    
    	<gallery id="1" title="<![CDATA[my title]]>" description="<![CDATA[This is the desc]]>" path="wp-content/gallery/mygallery" previewimg="myimg.jpg" author="<![CDATA[John Doe]]>">
    		<image>
    			<title><![CDATA[Image title]]></title>
    			<caption><![CDATA[Image caption]]></caption>
    			<location>http://mydomain.com/wp-content/gallery/mygallery/myimg.jpg</location>
    		</image>
    		<image>
    			<title><![CDATA[Image title]]></title>
    			<caption><![CDATA[Image caption]]></caption>
    			<location>http://mydomain.com/wp-content/gallery/mygallery/myimg.jpg</location>
    		</image>
    	</gallery>
    
    	<gallery id="2" title="my title 2" description="This is the desc 2" path="wp-content/gallery/mygallery2" previewimg="myimg.jpg" author="John Doe">
    		<image>
    			<title><![CDATA[Image title]]></title>
    			<caption><![CDATA[Image caption]]></caption>
    			<location>http://mydomain.com/wp-content/gallery/mygallery2/myimg.jpg</location>
    		</image>
    		<image>
    			<title><![CDATA[Image title]]></title>
    			<caption><![CDATA[Image caption]]></caption>
    			<location>http://mydomain.com/wp-content/gallery/mygallery2/myimg.jpg</location>
    		</image>
    	</gallery>
    
    	<gallery id="3" title="my title 3" description="This is the desc 3" path="wp-content/gallery/mygallery3" previewimg="myimg.jpg" author="John Doe">
    		<image>
    			<title><![CDATA[Image title]]></title>
    			<caption><![CDATA[Image caption]]></caption>
    			<location>http://mydomain.com/wp-content/gallery/mygallery3/myimg.jpg</location>
    		</image>
    		<image>
    			<title><![CDATA[Image title]]></title>
    			<caption><![CDATA[Image caption]]></caption>
    			<location>http://mydomain.com/wp-content/gallery/mygallery3/myimg.jpg</location>
    		</image>
    	</gallery>
    
    </nextgen>

    Thanks for a great bunch of software all!

  2. jimmyink
    Member
    Posted 4 years ago #

    I'm currently facing the same problem. Have you found a solution yet?

  3. jimmyink
    Member
    Posted 4 years ago #

    For anyone that stumbles across this, I found that you can use this url to retrieve an xml list of a next gen gallery.

    http://www.yoururl.com/index.php?slideshow=true&gid=1

    You can substitute the '1' for the id of the gallery you wish to return.

    I can't seem to find any documentation for this, but if any know where you/I can read up more on this please post it!

  4. jimmyink
    Member
    Posted 4 years ago #

    This is the xml it returns -

    <playlist version='1' xmlns='http://xspf.org/ns/0/'>
    	<title>tester</title>
    	<trackList>
    		<track>
    			<title>This is the Description</title>
    			<location>http://www.yoururl.com.au/wp-content/gallery/tester/1.jpg</location>
    		</track>
    		<track>
    
    			<title>Image 2</title>
    			<location>http://www.yoururl.com.au/wp-content/gallery/tester/2.jpg</location>
    		</track>
    	</trackList>
    </playlist>
  5. Alex Rabe
    Member
    Posted 4 years ago #

    The XML is the output for the slideshow flash player, if you need a other structure you need to code this. Look into the imagerotator.php file for a sample

  6. jimmyink
    Member
    Posted 4 years ago #

    Thanks alex, keep up the good work!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.