These forums are provided for community interactions only. For official support please submit a support ticket.

You are not logged in.

#1 2012-05-06 17:36:11

pete_d
New Member
Registered: 2009-05-19
Posts: 5

Director export xml for Supersized!

Does anyone know if anything has been developed to export or manipulate xml from Director galleries to be used in Supersized! (jquery plugin) slideshows?

This would seem like an awesome html 5/mobile alternative to flash.

Peter

Last edited by pete_d (2012-05-06 17:36:34)

Offline

 

#2 2012-05-08 18:51:02

mwetzler
New Member
From: Austin, TX
Registered: 2009-09-21
Posts: 1
Website

Re: Director export xml for Supersized!

Hey Pete. This doesn't really involve exporting or manipulating the XML from Director but I used the Director PHP API and modified the Supersized! script on my homepage so I could manage the image slideshow via Director and not have to worry about it manually. Basically I set it up to as a "smart album" so any images I tag with "Homepage" in Director are pulled into the homepage image rotation. There may/likely be a more elegant solution, but this works and was fairly painless to get functioning the way I wanted. I've been toying with the idea of expanding it to make the actual portfolio pages behave in the same fashion, but just haven't had the time.

My site can be viewed at http://photography.thewmatt.com/ and you can simply view source to see the generated code. Good luck!

-------------------
Here's the code I used:
-------------------
<script type="text/javascript">
jQuery(function($){
    $.supersized({
   
        //Supersized! Variables Here, removed for clarity
        //Functionality
        slides    :  [
                    <?php
                       include('DirectorPHP.php');
                       $director = new Director('Director Install API Key Here', 'URL/Path to Director Installation Here');
                   
                        $bground = array(
                            'name' => 'bground',
                            'width' => '1280',
                            'height' => '1280',
                            'crop' => 0,
                            'quality' => 80,
                            'sharpening' => 0
                        );
                       
                        $director->format->add($bground);
                       
                        $tags = array('homepage', 'all');
                        $content = $director->content->all(array('tags' => $tags));
                       
                        foreach($content as $images) {
                            echo '{ image : "' . $images->bground->url . '"},';
                        }
                    ?>
                    ]
    });
});
</script>


'thew' Matt Wetzler
http://thewmatt.com/

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson