Changes for page Tree Macro
Last modified by Admin on 2024/03/25 17:02
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -xwiki:XWiki. Admin1 +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