[xwiki-users] How to create a macro ?

Vincent Massol vincent at massol.net
Tue May 8 10:41:00 CEST 2007


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
>>
>>
>>
>> roopesh at digitalglue.in
>> 04/25/2007 02:19 AM
>> Please respond to
>> xwiki-users at objectweb.org
>>
>>
>> To
>> xwiki-users at 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 at objectweb.org mailing list.
>> To unsubscribe: mailto:xwiki-users-unsubscribe at objectweb.org
>> For general help: mailto:sympa at 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 at objectweb.org mailing list.
>> To unsubscribe: mailto:xwiki-users-unsubscribe at objectweb.org
>> For general help: mailto:sympa at objectweb.org?subject=help
>> ObjectWeb mailing lists service home page: http:// 
>> www.objectweb.org/wws
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xwiki.org/pipermail/users/attachments/20070508/35839938/attachment-0001.html 


More information about the users mailing list