Изменения документа Children Macro
Редактировал(а) Anton Krivchenkov 28.12.2025 09:12
От версии 1.1
отредактировано Anton Krivchenkov
на 03.12.2024 14:12
на 03.12.2024 14:12
Изменить комментарий:
Install extension [org.xwiki.platform:xwiki-platform-index-tree-macro/16.10.0]
К версии 3.1
отредактировано Anton Krivchenkov
на 28.12.2025 09:12
на 28.12.2025 09:12
Изменить комментарий:
Install extension [org.xwiki.platform:xwiki-platform-index-tree-macro/17.10.1]
Сводка
-
Объекты (1 изменено, 2 добавлено, 0 удалено)
Подробности
- XWiki.WikiMacroClass[0]
-
- Код
-
... ... @@ -1,1 +1,10 @@ 1 -{{documentTree root="document:" /}} 1 +{{velocity}} 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" /}} 10 +{{/velocity}}
- XWiki.WikiMacroParameterClass[0]
-
- Описание параметра
-
... ... @@ -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'. - Обязательность параметра
-
... ... @@ -1,0 +1,1 @@ 1 +Нет - Имя параметра
-
... ... @@ -1,0 +1,1 @@ 1 +sort - Тип параметра
-
... ... @@ -1,0 +1,1 @@ 1 +org.xwiki.index.tree.internal.macro.DocumentSort
- XWiki.WikiMacroParameterClass[1]
-
- Описание параметра
-
... ... @@ -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 - Обязательность параметра
-
... ... @@ -1,0 +1,1 @@ 1 +Нет - Имя параметра
-
... ... @@ -1,0 +1,1 @@ 1 +root - Тип параметра
-
... ... @@ -1,0 +1,1 @@ 1 +org.xwiki.tree.EntityTreeNode