Last modified by Simon Urli on 2023/10/10

<
From version < 8.1 >
edited by Asiri Rathnayake
on 2009/07/20
To version < 10.1 >
edited by Asiri Rathnayake
on 2009/07/20
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -17,7 +17,7 @@
17 17  
18 18  We are going to start with a very simple xwiki/2.0 wiki macro which prints a greeting message to the document content. It isn't a very useful macro but the idea is to get you familiarised with the wiki macro creation process.
19 19  
20 -1.1.1 The XWiki.WikiMacroClass
20 +1.1.1 XWiki.WikiMacroClass
21 21  
22 22  Wiki macros are defined using objects of type XWiki.WikiMacroClass. You define a wiki macro by creating a new wiki page and attaching it an object of type XWiki.WikiMacroClass. This class contains following fields:
23 23  
... ... @@ -27,4 +27,9 @@
27 27  
28 28  * Macro content: The actual wiki content that will be evaluated when the macro is executed, can be any wiki content (should be in the same syntax as the document)
29 29  
30 +Now we can define our hello world wiki macro as shown below:
30 30  
32 +{image:macro1.png}
33 +
34 +
35 +

Get Connected