Änderungen von Dokument Children Macro
Zuletzt geändert von admin Marcus Lorenz am 10.07.2025
Von Version 3.1
bearbeitet von Marcus Lorenz
am 02.05.2025
am 02.05.2025
Änderungskommentar:
Migrated property [executionIsolated] from class [XWiki.WikiMacroClass]
Auf Version 5.1
bearbeitet von admin Marcus Lorenz
am 02.05.2025
am 02.05.2025
Änderungskommentar:
Install extension [org.xwiki.platform:xwiki-platform-index-tree-macro/17.3.0]
Zusammenfassung
-
Seiteneigenschaften (1 geändert, 0 hinzugefügt, 0 gelöscht)
-
Objekte (1 geändert, 1 hinzugefügt, 0 gelöscht)
Details
- Seiteneigenschaften
-
- Dokument-Autor
-
... ... @@ -1,1 +1,1 @@ 1 -xwiki:XWiki. MarcusLorenz1 +xwiki:XWiki.adminLorenz
- XWiki.WikiMacroClass[0]
-
- Makro-Code
-
... ... @@ -1,5 +1,10 @@ 1 1 {{velocity}} 2 2 ## Escape special characters in the macro parameter value. 3 3 #set ($sort = $xcontext.macro.params.sort.replaceAll('([~"])', '~$1')) 4 -{{documentTree root="document:" sortDocumentsBy="$!sort" /}} 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" /}} 5 5 {{/velocity}}
- XWiki.WikiMacroParameterClass[1]
-
- Parameter-Beschreibung
-
... ... @@ -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 - Parameter verpflichtend
-
... ... @@ -1,0 +1,1 @@ 1 +Nein - Parameter-Name
-
... ... @@ -1,0 +1,1 @@ 1 +root