General Actions:
Log-in
Register
Wiki:
Main wiki
▼
:
Document Index
»
Space:
WikiCode
▼
:
Document Index
»
Page:
LastCreatedWikisCode
Search
en
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
Main wiki
»
Wiki Manager
»
Space WikiCode
»
LastCreatedWikisCode
Wiki source code of
LastCreatedWikisCode
Last modified by
Administrator
on 2012/03/21 17:41
Content
·
Comments
(0)
·
Annotations
(0)
·
Attachments
(0)
·
History
·
Information
Hide line numbers
1: ############################################################################# 2: ## Print the list of last created wikis with there respective owner. 3: ## 4: ## Can use URL parameters : 5: ## -nb : The maximum number of results to print 6: ## 7: ############################################################################# 8: #if ($request.nb) 9: #set($nb = $util.parseInt($request.nb)) 10: #end 11: ############################################################################# 12: #includeMacros("WikiCode.Macros") 13: #set($WikiManager = $services.wikimanager) 14: #if(!$WikiManager) 15: #error($msg.get("wikimanager.pluginnotenabled")) 16: #end 17: #set($Exception = $WikiManager.DefaultException) 18: ## 19: ############################################################################# 20: ## 21: #if(!$nb) 22: #set($nb = 5) 23: #end 24: ## 25: #if(!$allwikilist) 26: #set($allwikilist = $WikiManager.getAllWikis()) 27: #end 28: ## 29: #if(!$creationsortedallwikilist) 30: #set ($creationsortedallwikilist = $sorttool.sort($allwikilist, 'creationDate:desc')) 31: #end 32: ## 33: ############################################################################# 34: ## 35: #if(!$creationsortedallwikilist.isEmpty()) 36: #foreach($wikidoc in $creationsortedallwikilist) 37: #set($firstWikiAlias = $wikidoc.firstWikiAlias) 38: #if($velocityCount < $nb) 39: #displaymodification($wikidoc.wikiName $firstWikiAlias.getHomePageUrl() $wikidoc.creationDate $formatDate $wikidoc.creator true) 40: #end 41: #end 42: #end 43: ## 44: #if (!$doc.name.equals("LastCreatedWikisCode")) 45: <br/> 46: [See more>WikiCode.LastCreatedWikisCode] 47: #end