You can also create your macro in a page and then load that page using the #includeMacros macro wherever you need it. See http://www.xwiki.org/xwiki/bin/view/Code/IncludeMacrosMacro

-Vincent

On Apr 25, 2007, at 5:02 PM, Thomas Kliethermes wrote:


From what I understand, there's two ways to do it.  One, add it to macros.vm in your skin directory.  Two, put it in a .vm file you include in the document you need to use it in (using #template("filename.vm")).  Anyone know if there any better ways?

-Tom

--
Tom Kliethermes
eSupport Initiatives
IBM Information Management
(913) 599-7240   Fax: (913) 599-8590
http://www.ibm.com/software/data



roopesh@digitalglue.in

04/25/2007 02:19 AM
Please respond to
xwiki-users@objectweb.org

To
xwiki-users@objectweb.org
cc
Subject
[xwiki-users] How to create a macro ?





Hi

How can I create my own macro in my xwiki (say, a macro for adding two numbers). Where should I write it. So that I can use it from any page ?

Regards
Roopesh


--
You receive this message as a subscriber of the xwiki-users@objectweb.org mailing list.
To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
For general help: mailto:sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws


--
You receive this message as a subscriber of the xwiki-users@objectweb.org mailing list.
To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
For general help: mailto:sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws