Changes for page Tree Macro

Last modified by Admin on 2024/03/25 17:02

<
From version < 12.3 >
edited by Admin
on 2016/05/24 15:42
To version < 13.1 >
edited by Denis Gervalle
on 2016/06/30 12:56
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.Admin
1 +xwiki:XWiki.dgervalle
ExtensionCode.ExtensionClass[0]
Description
... ... @@ -64,10 +64,25 @@
64 64  
65 65  {{code language="none"}}
66 66  #tree({
67 - parameter: 'value'
67 + 'parameter' : 'value'
68 68  })
69 69  {{/code}}
70 70  
71 +In order to use it you have to include the ##tree_macros.vm## Velocity template (where the macro is defined). Here's how you can do it from the content of a wiki page:
72 +
73 +{{code language="none"}}
74 +{{template name="tree_macros.vm" /}}
75 +
76 +{{velocity}}
77 +{{html}}
78 +#tree({
79 + 'parameter' : 'value'
80 +})
81 +{{/html}}
82 +{{/velocity}}
83 +{{/code}}
84 +
85 +
71 71  == Parameters ==
72 72  
73 73  |=Name|=Description|=Default Value|=Since

Get Connected