Children Macro

Last modified by Vincent Massol on 2025/01/27 10:21

cogDisplays a tree-view of all children of the current page
TypeXAR
CategoryMacro
Developed by

XWiki Development Team

Rating
0 Votes
LicenseGNU Lesser General Public License 2.1
Bundled With

XWiki Standard

Compatibility

Since 8.3M1

Description

Displays a tree-view of the children of the current page (using the Document Tree Macro). This macro is part of the Document Tree Macro extension.

Usage

WYSIWYG Editor

You can insert this macro from the WYSIWYG Editor, either through the quick actions (slash) or through the insert macro modal.

children-edit.png

Wiki Syntax

{{children sort="date:desc" /}}

Parameters

NameMandatoryDescriptionDefault Value
sortcancelXWiki 16.10.3+, 17.0.0+ The page field used to sort the child pages, followed by the sort order. The following page fields are currently supported: name, title, date (last modification date) and creationDate. You can optionally indicate the sort order: asc (ascending) or desc (descending)title:asc

Example

Put the following inside the Sandbox home page (for example):

{{children/}}

Results in:

childrenmacro.png

Get Connected