Consortium
Activities
Projects
Forge
Events
Log-in
Register
PresentationClassS5Sheet
Space Menu
Consortium
|
Solutions
|
Middleware
|
Forge
|
MyObjectWeb
|
PDF
|
History
|
More Actions
View
Code
|
XML
|
Help
Documentation
|
XWiki Syntax
|
#set($presobj = $doc.getObject("XWiki.PresentationClass")) <div class="layout"> <div id="currentSlide"></div> <div id="header">$!doc.display("header", "rendered", $presobj)</div> <div id="logo">$!doc.display("logo", "rendered", $presobj)</div> <div id="footer"> $!doc.display("footer", "rendered", $presobj) <a href="$doc.getURL("inline")"> <img src="$xwiki.getSkinFile("editPage.gif")" border="0" alt="Edit Presentation" /> </a> <div id="controls"></div> </div> </div> <div class="presentation"> #macro(slide $slideobj) <div class="slide"> <h1>$doc.display("title", $slideobj)</h1> $doc.display("content", "rendered", $slideobj) </div> #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) #slide($slideobj) #end #end </div>