You are mixing several things. What you are talking about in your last mail is a wiki macro and does not have much to do with Velocity (except for the fact that can put Velocity like any other wiki content in wiki macros) and wiki macros are registered for a wiki (or a whole farm) and can then be used in any page of that wiki. But wiki macro are wiki syntax for which parameters are just text, you can't pass complex objects to a wiki macros, something you can do with Velocity macro.
In short wiki macro are more configurable display elements which don't require any include where velocity macro are the functions of the Velocity language and require to be included some way. More about wiki macros: http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial On Thu, May 29, 2014 at 6:00 PM, tullio0106 <[email protected]> wrote: > This means there's no way to define a macro someware and use it like a > function (with or without parameters) like {{mymacro}} ? > Tks > > > > -- > View this message in context: > http://xwiki.475771.n2.nabble.com/Reusing-macro-tp7590736p7590766.html > Sent from the XWiki- Users mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
