Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -31,10 +31,34 @@ 31 31 32 32 = For Developers = 33 33 34 -== <developerfeatureN>==34 +== Tree Velocity Macros == 35 35 36 - <descriptionofdeveloper featureN>36 +You are now able to "call" the Document Tree from Velocity using something like this: 37 37 38 +{{code language="none"}} 39 +#documentTree({ 40 + 'class': 'location-tree', 41 + 'finder': true, 42 + 'showAttachments': false, 43 + 'showRoot': $showRoot, 44 + 'showTerminalDocuments': false, 45 + 'showTranslations': false, 46 + 'showWikis': $showWikis 47 +}) 48 +{{/code}} 49 + 50 +The same is possible with the generic Tree Widget: 51 + 52 +{{code language="none"}} 53 +#tree({ 54 + 'reference': 'XWiki.DocumentTree', 55 + 'root': 'document:xwiki:Sandbox.WebHome', 56 + 'openTo': 'document:xwiki:Sandbox.TestPage2' 57 +}) 58 +{{/code}} 59 + 60 +All the parameters that are available for the wiki macros (##~{~{documentTree~}~}## and ##~{~{tree~}~}## should be available also for the corresponding Velocity macro. 61 + 38 38 == Deprecated and Retired projects == 39 39 40 40 <description of deprecated and retired projects>