Modifications pour le document Children Macro
Modifié par Florent Charton le 2026/01/13 15:00
Depuis la version 1.1
modifié par superadmin
sur 2022/06/20 08:48
sur 2022/06/20 08:48
Commentaire de modification :
Install extension [org.xwiki.platform:xwiki-platform-index-tree-macro/13.10.6]
À la version 6.1
modifié par Florent Charton
sur 2026/01/13 14:57
sur 2026/01/13 14:57
Commentaire de modification :
Migrated property [contentOrder] from class [XWiki.WikiMacroClass]
Résumé
-
Propriétés de la Page (1 modifications, 0 ajouts, 0 suppressions)
-
Objets (1 modifications, 2 ajouts, 0 suppressions)
Détails
- Propriétés de la Page
-
- Auteur du document
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. superadmin1 +xwiki:XWiki.fcharton
- XWiki.WikiMacroClass[0]
-
- Mis en cache
-
... ... @@ -1,0 +1,1 @@ 1 +Non - Rendu asynchrone
-
... ... @@ -1,0 +1,1 @@ 1 +Non - Code de la macro
-
... ... @@ -1,3 +1,10 @@ 1 1 {{velocity}} 2 -{{documentTree root="document:" /}} 2 +## Escape special characters in the macro parameter value. 3 +#set ($sort = $xcontext.macro.params.sort.replaceAll('([~"])', '~$1')) 4 +#if ("$!xcontext.macro.params.root" != '') 5 + #set ($root = $xcontext.macro.params.root) 6 +#else 7 + #set ($root = 'document:') 8 +#end 9 +{{documentTree root="$root" sortDocumentsBy="$!sort" /}} 3 3 {{/velocity}} - Default categories
-
... ... @@ -1,0 +1,1 @@ 1 +Navigation - Catégorie par défaut
-
... ... @@ -1,1 +1,0 @@ 1 -Navigation
- XWiki.WikiMacroParameterClass[0]
-
- Description du paramètre
-
... ... @@ -1,0 +1,1 @@ 1 +The document field used to sort the child documents, followed optionally by the sort order. E.g.: 'title' or 'date:desc'. - Paramètre obligatoire
-
... ... @@ -1,0 +1,1 @@ 1 +Non - Nom du paramètre
-
... ... @@ -1,0 +1,1 @@ 1 +sort - Type du paramètre
-
... ... @@ -1,0 +1,1 @@ 1 +org.xwiki.index.tree.internal.macro.DocumentSort
- XWiki.WikiMacroParameterClass[1]
-
- Description du paramètre
-
... ... @@ -1,0 +1,1 @@ 1 +The root node id. This is useful if you want to display only the descendants of a given node (which is the specified root). The tree displays the children of the root node on the first level, so the root node is not actually displayed. The entire tree is displayed if the root node is not specified. The format of a node identifier is entityType:entityReference, where the entity type can be for instance wiki, space, document. E.g.: wiki:xwiki, space:xwiki:Main, document:xwiki:Main.WebHome - Paramètre obligatoire
-
... ... @@ -1,0 +1,1 @@ 1 +Non - Nom du paramètre
-
... ... @@ -1,0 +1,1 @@ 1 +root