[xwiki-users] #includeMacros("macrosDocument")
Sergiu Dumitriu
sergiu at xwiki.com
Thu Mar 13 21:41:37 CET 2008
[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
> Please, where must I include a #includeMacros macro to have the macros
> defined there available for any document in a wiki?
>
> I see the Macro Mapping field in Administration > Preferences >
> Advanced, but I am not able to find how to use it. I've tried by putting
> the macros there, the macro there calling a document with the macros'
> definition,.. but none of these worked. A modified macros.vm does perfect.
>
> Thanks for your help,
>
> Ricardo
>
If it doesn't have to be a wiki document, then the best thing to do is
to write a mymacros.vm file, put it somewhere, like /skins/mymacros.vm,
and register it in /WEB-INF/velocity.properties (search for macros.vm
and append it there).
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
More information about the users
mailing list