General Actions:
Log-in
Wiki:
Courses
▼
:
Document Index
»
Space:
XWiki
▼
:
Document Index
»
Page:
recentModificationsUpdater
Search
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
recentModificationsUpdater
Wiki source code of
recentModificationsUpdater
Last modified by
Holger Dick
on 2010/08/20 15:47
Content
·
Comments
(0)
·
Attachments
(0)
·
History
·
Information
Show line numbers
#set($recentlyCreated = $xwiki.searchDocuments("where space not like 'XWiki' and space not like 'Scheduler' and space not like 'Stats' and space not like 'Panels' order by doc.date desc", 5, 0)) #set($recentMods = $xwiki.getDocument("XWiki.recentModifications")) #set($somestring = "<table class='stats' cellspacing='0' cellpadding='0'>") #if($recentlyCreated.size() > 0) #foreach($docname in $recentlyCreated) #set($rdoc = $xwiki.getDocument($docname).getTranslatedDocument()) #set($userdoc = $xwiki.getDocument("${rdoc.getAuthor()}")) $userdoc.use("XWiki.XWikiUsers") #set($name = $rdoc.displayTitle) #if($name.length() >= 20) #set($names= "${name.substring(0, 18)}") #set($names= $names.concat('...')) #else #set($names= $name) #end #set($somestring = "$somestring" + "<tr><td style='border-width: 0px 0px 1px 0px; border-style: dashed; border-color: white;'><a href='$rdoc.getURL('view')'>$names</a></td><td style='border-width: 0px 0px 1px 0px; border-style: dashed; border-color: white;'>#if($userdoc.attachmentList.size()>0) #set($attach = $userdoc.attachmentList.get(0)) <img src='$userdoc.getAttachmentURL($attach.filename,'download', 'height=25')' height='25'/>#end</td></tr>") #end #set($somestring = "$somestring" + "</table>") #else #set($somestring = 'No Recent Updates :(') #end $recentMods.setContent("$somestring") $recentMods.save()
Welcome
Welcome to this XWiki!
Quick Links
DSSF 2008
DCNM 2009
HCCF 2010
Document Index
Sandbox
My Recent Modifications
ASSIGNMENTNAME