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 (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -63,8 +63,10 @@ 63 63 64 64 == Content == 65 65 66 -Starting with {{code}}XWiki 11.4RC1{{/code}} it ispossibleto insert the content of the wiki macroby using a dedicated macro:66 +Starting with {{code}}XWiki 11.4RC1{{/code}} there is two ways to insert the content of the wiki macro. 67 67 68 +The easiest way is to use a dedicated macro in the body of the wikimacro: 69 + 68 68 {{code language="none"}} 69 69 {{wikimacrocontent/}} 70 70 {{/code}} ... ... @@ -71,7 +71,7 @@ 71 71 72 72 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]]. 73 73 74 - Ifmacrocontentisused,it canbe shownby executing the following velocity code in the macro body:76 +The older way to insert the content is by executing the following velocity code in the macro body: 75 75 76 76 {{code language="none"}} 77 77 {{velocity}}$xcontext.macro.content{{/velocity}}