Re: Slideshowpro integration
Don't know about the Flash or Slideshowpro but.....
You can add javascript to the page head in the Page Layout (so without adjusting the template you could make a page layout, or several, for Slideshowpro pages).
Xml files get easily stuck in browser cache it seems to me, so after changes refresh the xml page with a direct browser call http://mysite/tl_files/whereverthexmllives.xml. This is probably why the xml has no effect.
I generally use Firefox set to dump all cache/history etc on close. This way simply closing and reopening the browser ensures I have a new copy (uncached) of any changed files.
Re: Slideshowpro integration
Thanks for the info ramjet!
In case anyone is interested, here's how I managed to work it out using the module approach (my preferred one).
Used the Flash version of SSP instead of the standalone version, which requires this to be inserted rather than what I listed in my first post:
Code:
<script type="text/javascript">
var flashvars = {}
var params = {
base: "."
}
var attributes = {}
swfobject.embedSWF("test.swf", "flashcontent", "300", "120", "9.0.0", false, flashvars, params, attributes);
</script>
I wasn't able to figure out how to set the params array as shown above, which specifies the parent URL as the base href rather than the root of the site (which TL does automatically). Aside from that, TL's native Flash handler works ok for setting the rest of the parameters and flash vars.
As a result, I ended up placing my images.xml into the root of the site and manually adding
Code:
$GLOBALS['TL_CONFIG']['rootFiles'][] = 'images.xml';
to localconfig.php so it wouldn't be deleted automatically by TL.
Re: Slideshowpro integration
Mark,
I've used SSP at www.mckessonclubphotos.com and a few other TL sites. As you mention, I just use a Flash movie module and enter FlashVars something like: "xmlfile=admin/images.php?gallery=2". I also use SSP Director, which I highly recommend unless you're only working with small galleries that never change.