SpaceIndex Macro

Last modified by Vincent Massol on 2016/12/14 19:10

cogLists the documents in a space.
TypeXAR
Developed by

XWiki Development Team

Rating
Rate!
0 Votes
LicenseGNU Lesser General Public License 2.1
Bundled With

XWiki Enterprise

Compatibility

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

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.

Tags:
Created by Anca Luca on 2010/12/26 18:44
    

Get Connected