History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: DOTCMS-1494
Type: Task Task
Status: Released Released
Resolution: Released
Priority: Critical Critical
Assignee: Testing User
Reporter: Maria Bouza
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
dotCMS

Document Slideshow Macro in Macro Help

Created: May 27, 2008 6:34 PM   Updated: July 23, 2009 11:53 AM  Due: 6/3/08
Component/s: a. Unknown
Affects Version/s: 1.6.0.6
Fix Version/s: 1.6.5

Time Tracking:
Original Estimate: 2 hours
Original Estimate - 2 hours
Remaining Estimate: 0 minutes
Time Spent - 1 day, 1 hour
Time Spent: 1 day, 1 hour
Time Spent - 1 day, 1 hour


 Description  « Hide
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

 All   Comments   Work Log   Change History   Subversion Commits   FishEye      Sort Order: Ascending order - Click to sort in descending order
Armando Siem - May 28, 2008 7:14 PM
Maru,

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

Denise R. Jacobs - June 03, 2008 12:19 PM
***this is a high priority in order to implement the slideshow macro on the Akron site. ***

thanks!
Denise

Jason Tesser - June 05, 2008 12:58 PM
Armando,
Maru said to assign this to you


Jason Tesser - August 11, 2008 11:30 AM
Code has all been merged