Consortium
Activities
Projects
Forge
Events
Log-in
Register
What's New
Space Menu
Consortium
|
Solutions
|
Middleware
|
Forge
|
MyObjectWeb
|
PDF
|
History
|
More Actions
View
Code
|
XML
|
Help
Documentation
|
XWiki Syntax
|
#set($diff = $request.get("diff")) #if(!$diff) #set($diff = "0") #end 1 What's New The following documents have been recently created or modified: #if($diff == "0") [Click here to view the changes>$doc.name?diff=1] #end #set ($sql = "where doc.name <> 'WhatsNew' order by doc.date desc") #set ($list = $xwiki.searchDocuments($sql , 20 , 0)) #foreach ($item in $list) #if ($xwiki.hasAccessLevel("view", "${context.database}:${item}")) #set($bentrydoc = $xwiki.getDocument($item)) #set($author = $bentrydoc.author) #set($i = $author.indexOf(".")+1) * [$bentrydoc.name>${bentrydoc.web}.$bentrydoc.name] by [${author.substring($i)}>$author] on $xwiki.formatDate($bentrydoc.date,"MMMM dd, yyyy HH:mm") #if ($diff == "1") #set($deltas= $bentrydoc.getLastChanges()) #foreach($delta in $deltas) #set($chunk = $delta.revised) #if ($chunk.size()>0) <div style="border-left: 8px solid #00FF00"> #if (($type == "source")||($type == "xml")) <pre> $xwiki.renderChunk($chunk, true, $tdoc) </pre> #else $xwiki.renderChunk($chunk, $tdoc) #end </div> #end #set($chunk = $delta.original) #if ($chunk.size()>0) <div style="border-left: 8px solid #FF0000"> #if (($type == "source")||($type == "xml")) <pre> $xwiki.renderChunk($chunk, true, $tdoc) </pre> #else $xwiki.renderChunk($chunk, $tdoc) #end </div> #end #end #end #end #end