SpaceIndex Macro
Version 16.1 by Gabriela Smeria on 2015/01/20 09:13
![]() | Lists the documents in a space. |
Type | XAR |
Category | |
Developed by | |
Rating | |
License | GNU Lesser General Public License 2.1 |
Bundled With | XWiki Enterprise, XWiki Enterprise Manager |
Compatibility | XWiki Platform >= 3.0M1 |
Table of contents
Description
Displays the documents in a space, in a list with links.
Usage
In your page, type:
{{spaceindex space="<space name here>" /}}
Parameter definition
Name | Optional | Allowed values | Default value | Description |
---|---|---|---|---|
space | yes | any string | none | The name of the space to display the list of documents for. If missing, the current space will be used. |
count | yes | number | 100 | The maximum number of documents to display. If all documents should be displayed, pass 0. |
sort | yes | creationDate,modificationDate,docName | creationDate | Sorting the list by the selected field (creationDate, modificationDate or docName). |
Example
{{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.
If there more documents than displayed (i.e. there are more documents than the count parameter value) then you'll see something like this: