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
-
... ... @@ -5,6 +5,8 @@ 5 5 6 6 1 Wiki Macro Tutorial 7 7 8 +#error("This document is still under development") 9 + 8 8 Wiki macros allow macro authors to develop reusable and distributable macro modules. There is no java code involved; hence no compiling or packaging. Macro author simply needs to create a wiki page according to a particular specification and that's all! 9 9 10 10 1.1 Prerequisites ... ... @@ -31,7 +31,7 @@ 31 31 32 32 {image:macro1.png} 33 33 34 -1.1.1 InvokingHello WorldMacro36 +1.1.1 Wiki Macro Invocation 35 35 36 36 A wiki macro can be invoked just as any other macro is invoked. Since we are writing a xwiki/2.0 wiki macro, we can invoke our hello world macro as below: 37 37 ... ... @@ -41,7 +41,7 @@ 41 41 42 42 And if you view the result it would say "Hello World!" (of course). 43 43 44 -1.1.1 HelloWorld Macro In WYSIWYG46 +1.1.1 WYSIWYG Access 45 45 46 46 A wiki macros is treated just like any other rendering macro in the system. As such, the moment you save your wiki macro it will be available to the users through the WYSIWYG editor's *Insert Macro* dialog box: 47 47 ... ... @@ -52,3 +52,4 @@ 52 52 53 53 54 54 57 +