In YourSpace.YourMacros you have: {{velocity output="false"}} #macro (doSomething $param1 $param2) ... #end {{/velocity}} In SomeOtherSpace.SomePage you have: {{include reference="YourSpace.YourMacros" /}} {{velocity}} #doSomething("foo" "bar") {{/velocity}} What part of this was not obvious? If you want to call #doSomething in a document title you can add the macro definition to macros.vm inside the templates folder and then restart the server. On Thu, May 29, 2014 at 2:07 PM, tullio0106 <[email protected]> wrote:
Tks. But when I include such page how can I recall the macro in the host page ? Tks
-- View this message in context: http://xwiki.475771.n2.nabble.com/Reusing-macro-tp7590736p7590757.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users