Document Slideshow Macro in Macro Help. Create test page in the trunk site so we can see how it works.
#macro(slideshow $title)
#if(!$UtilMethods.isSet($slideshow_swf))
#set($slideshow_swf = '/html/flash/slideshow.swf')
#end
#if(!$UtilMethods.isSet($slideshow_width))
#set($slideshow_width = 275)
#end
#if(!$UtilMethods.isSet($slideshow_height))
#set($slideshow_height = 306)
#end
#if(!$UtilMethods.isSet($slideshow_image_width))
#set($slideshow_image_width = 275)
#end
#if(!$UtilMethods.isSet($slideshow_image_height))
#set($slideshow_image_height = 194)
#end
#set($isAutoPlayVar = "")
#if($UtilMethods.isSet($isAutoPlay) && !$isAutoPlay)
#set($isAutoPlayVar = "&isAutoPlay=false")
#end
<script type="text/javascript" src="/html/js/flashobject.js"></script>
<div id="slideshowWrapper">
<div>
You will need a current version of Flash to view this content. <br /><a href="
http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank">Click here to download the latest Flash player.</a>
</div>
</div>
<script type="text/javascript">
var fo = new FlashObject("${slideshow_swf}?xmlURL=/dot_slideshow?slideShowTitle=${title}$!{isAutoPlayVar}&widths=${slideshow_image_width}&heights=${slideshow_image_height}", "mymovie", "${slideshow_width}", "${slideshow_height}", "7", "#ffffff");
fo.addParam("quality", "high");
fo.addParam("wmode", "transparent");
fo.addParam("salign", "t");
//fo.addParam("scale", "noscale");
fo.addParam("allowScriptAccess", "sameDomain");
fo.addParam("swliveconnect", "true");
fo.write("slideshowWrapper");
</script>
#end
I fixed the java code to return the xml as the parameter to the swf file.
The problem is when the slideshow.swf is invoked with the xml file, this error is wrote in the log file:
ERROR com.dotmarketing.servlets.image.ThumbnailImage - service: invalid inode () or identifier(null) given to the service.
Did anyone have the documentation of the slideshow.swf and the xml file parameters ?
Armando