SpaceIndex Macro

Version 18.1 by Ramona Conoro on 2015/05/04 10:51

cogLists the documents in a space.
TypeXAR
Category
Developed by

XWiki Development Team

Rating
0 Votes
LicenseGNU Lesser General Public License 2.1
Bundled With

XWiki Enterprise, XWiki Enterprise Manager

Compatibility

XWiki Platform >= 3.0M1

Description

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

Usage

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). 

Example

{{spaceindex space="Sandbox" /}}

Will result in:

spaceindex.png

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:

spaceindex2.png

Tags:
    

Get Connected