Consortium
Activities
Projects
Forge
Events
Log-in
Register
Presentation
Space Menu
Consortium
|
Solutions
|
Middleware
|
Forge
|
MyObjectWeb
|
PDF
|
History
|
More Actions
View
Code
|
XML
|
Help
Documentation
|
XWiki Syntax
|
1 Presentation #set($redirect = $xwiki.getRequestURL()) * [Start the Presentation>${doc.name}?xpage=s5b] (click F11 to go full screen). * <a href="$doc.getURL("objectadd","classname=XWiki.SlideClass&xredirect=$redirect")">Add a slide</a>. * <a href="$doc.getURL("edit","xpage=editobject")">Edit/Remove slides</a>. #set($presobj = $doc.getObject("XWiki.PresentationClass")) 1.1 Presentation Template Logo: $doc.display("logo", "rendered", $presobj) Header: $doc.display("header", "rendered",$presobj) Footer: $doc.display("footer", "rendered",$presobj) #macro(slide $slideobj) 1.1 Slide $doc.display("number", $slideobj) Title: $doc.display("title", $slideobj) Content: $doc.display("content", "rendered", $slideobj) Comment (not shown in the presentation): $doc.display("comment", "rendered", $slideobj) #end #set($objdone = $xwiki.hashMap) #set ($thesql = "select obj.number from BaseObject as obj, IntegerProperty as prop where obj.id=prop.id.id and prop.id.name='number' and obj.className='XWiki.SlideClass' and obj.name='${doc.fullName}' order by prop.value asc") #foreach($slideobjnb in $xwiki.search($thesql)) #set($slideobj = $doc.getObject("XWiki.SlideClass", $slideobjnb)) #set($ok = $objdone.put($slideobj.getNumber(),1)) #slide($slideobj) #end #foreach($slideobj in $doc.getObjects("XWiki.SlideClass")) #if($objdone.get($slideobj.getNumber())==1) #else #slide($slideobj) #end #end