Hi everyone, I've discovered a new possibility today that we need to document. In the Administration page, in the Advanced tab there's a "Velocity Macro Pages" field. You can put in there the name of a page containing Velocity macros and that will make those macros available from all pages. I haven't tried it yet though. Hope it helps, -Vincent On Apr 25, 2007, at 5:16 PM, Vincent Massol wrote:
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
[email protected] 04/25/2007 02:19 AM Please respond to [email protected]
To [email protected] 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- [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http:// www.objectweb.org/wws
-- You receive this message as a subscriber of the xwiki- [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http:// www.objectweb.org/wws