Display list of pages of a space into the welcome page of this space
If you want to do it in a space named
MySpace, go to its homepage (MySpace.WebHome) and edit it. Then paste such code (in wiki editing mode):
Of course replace MySpace by the name of your space :)
Index of MySpace:
#set($index=$xwiki.getSpaceDocsName("MySpace"))
#foreach($page in $index)
#if($page != "WebPreferences")
[$page>$page] \\
#end
#end
And it should display list of pages of this space (except WebPreferences page which is a "system" page that should not be shown by regular users).
Comments
No comments for this document