Changes for page Writing XWiki Rendering Macros in wiki pages
Last modified by Simon Urli on 2023/10/10
From version 100.1
edited by Simon Urli
on 2019/05/20
on 2019/05/20
Change comment:
There is no comment for this version
To version 101.1
edited by Vincent Massol
on 2019/05/20
on 2019/05/20
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.s urli1 +XWiki.VincentMassol - Content
-
... ... @@ -63,21 +63,19 @@ 63 63 64 64 == Content == 65 65 66 -Starting with {{code}}XWiki 11.4RC1{{/code}} there is two ways to insert the content of the wiki macro. 67 - 68 -The easiest way is to use a dedicated macro in the body of the wikimacro: 69 - 66 +Starting with {{code}}XWiki 11.4RC1{{/code}} there are two ways to insert the content of the wiki macro. 67 +* The easiest way is to use a dedicated macro in the body of the wikimacro:((( 70 70 {{code language="none"}} 71 71 {{wikimacrocontent/}} 72 72 {{/code}} 73 73 74 74 Note that by default this makes the content of the macro directly editable in [[the WYSIWYG editor>>https://extensions.xwiki.org/xwiki/bin/view/Extension/CKEditor%20Integration/#HWikiMacros]]. 75 - 76 -The older way to insert the content is by executing the following velocity code in the macro body: 77 - 73 +))) 74 +* The older way to insert the content is by executing the following velocity code in the macro body:((( 78 78 {{code language="none"}} 79 79 {{velocity}}$xcontext.macro.content{{/velocity}} 80 80 {{/code}} 78 +))) 81 81 82 82 For more details, see the [[Scripting Tips section below>>platform:DevGuide.WikiMacroTutorial||anchor="HScriptingTips"]]. 83 83