SpaceIndex Macro

Last modified by Thomas Mortagne on 2023/10/10 17:12

cogLists the documents in a space.
Developed by

XWiki Development Team

0 Votes
LicenseGNU Lesser General Public License 2.1

Requires XWiki >= 3.0M1.

Starting with XWiki 7.2+ you should prefer using the Document Tree Macro or Documents Macro since the notion of spaces has been removed from the UI (see Content Organization).


Displays the documents in a space, in a list with links.


In your page, type:

{{spaceindex space="<space name here>" /}}

Parameter definition

NameOptionalAllowed valuesDefault valueDescription
spaceyesany stringnoneThe name of the space to display the list of documents for. If missing, the current space will be used.
countyesnumber100The maximum number of documents to display. If all documents should be displayed, pass 0.
sortyescreationDate,modificationDate,docNamecreationDateSince 6.1-milestone-2 Sorting the list by the selected field (creationDate, modificationDate or docName). 


{{spaceindex space="Sandbox" /}}

Will result in:


Note that the option to create a new page is only available if the user has the permission to create pages.

Get Connected