Changes for page Writing XWiki Rendering Macros in wiki pages
Last modified by Simon Urli on 2023/10/10
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. VincentMassol1 +XWiki.rbr - Content
-
... ... @@ -96,6 +96,15 @@ 96 96 {{hello greetUser="true"/}} 97 97 {{/code}} 98 98 99 +If you want to call the new version of the **hello macro** with a parameter from a variable you will need to wrap the call in a velocity macro like this: 100 + 101 +{{code language="none"}} 102 +{{velocity}} 103 +#set ($greet = true) 104 +{{hello greetUser="$greet"/}} 105 +{{/velocity}} 106 +{{/code}} 107 + 99 99 == Translations == 100 100 101 101