List All Spaces Snippet

List All Spaces Snippet

List all spaces in the current wiki

Code

Syntax 2.0

{{velocity}}
#foreach($space in $xwiki.spaces)
 * [[$space>>${space}.WebHome]]
#end
{{/velocity}}

Syntax 1.0

#set($spaces = $xwiki.spaces)
#foreach($space in $spaces)
  * [$space>${space}.WebHome]
#end

Result

Tags: code
Created by VincentMassol on 2006/12/10 21:52
Last modified by Uwe Stöhr on 2009/10/22 15:16

This wiki is licensed under a Creative Commons license
2.2.1.27354