<
From version < 26.1 >
edited by Marius Dumitru Florea
on 2015/11/28
To version < 27.1 >
edited by Marius Dumitru Florea
on 2015/11/30
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -31,10 +31,34 @@
31 31  
32 32  = For Developers =
33 33  
34 -== <developer feature N> ==
34 +== Tree Velocity Macros ==
35 35  
36 -<description of developer feature N>
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>

Get Connected