Last modified by Simon Urli on 2023/10/10

From version 7.1
edited by Asiri Rathnayake
on 2009/07/20
Change comment: There is no comment for this version
To version 4.1
edited by Asiri Rathnayake
on 2009/07/20
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -8,18 +8,3 @@
8 8  * Wiki macro authors need to have programming rights
9 9  * Wiki macros can only be defined inside the main wiki, though they can be used throughout a farm
10 10  
11 -1.1 Hello World Macro
12 -
13 -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.
14 -
15 -1.1.1 The XWiki.WikiMacroClass
16 -
17 -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:
18 -
19 -* Macro name: Name of the macro, which will be used by users to invoke your macro
20 -
21 -* Macro description: A short description of the macro, this description will be made available on the WYSIWYG editor (More on this later)
22 -
23 -* 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)
24 -
25 -

Get Connected