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
Return to search
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
Repository Revision Date User Message
dotcms.org #11830 Thu Jun 05 15:33:42 EDT 2008 armando DOTCMS-1494
Files Changed
MODIFY /trunk/dotCMS/html/portlet/ext/contentlet/macro_help.html