You put the Velocity macro in a separate page inside
{{velocity output="false"}}
..Your macro here..
{{/velocity}}
and then you include this page in all the pages that need to use that
macro. Of course, you don't need a page for each Velcity macro. You
just need a page where to put Velocity macros that are used all over
your code.
Hope this helps,
Marius
On Thu, May 29, 2014 at 12:13 PM, tullio0106 <[email protected]> wrote:
> Sorry but I didn't undrstand the suggestion.
> If I include the page I see the page content in my host page and I don't
> want it.
> I need only to include only my few lines of code in order to avoid to
> rewrite them every time.
> Tks
> Tullio
>
>
>
>
> --
> View this message in context:
> http://xwiki.475771.n2.nabble.com/Reusing-macro-tp7590736p7590754.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users