At this point, #includeMacros is the way to go.
We would need to see how to have velocity load wiki pages declared in 
the preferences as global Macros. But this is not yet available in XWiki.

One trick which has some  (very slight ) performance cost is to add your 
macros in your skin. This way they are always available.

Ludovic

Paul Grodt wrote:
>
> That's exactly what I wanted to know, thank you!  Now I wonder if
> there's some way to get the best of both worlds.  Users without disk
> access cannot edit the macros.vm file, and it's a pain to have to
> include the code segments every time you want to use it....Just musing
> but there must be a way to write a generic call that fetches a segment
> from a specified object (or page, whatever) on xwiki and then calls the
> contained macro using a variable number of arguments (and only pulls in
> the code once per page).
>
> But yes, that's what I needed to know to get started, thanks again.
>
> -Paul Grodt
> _______________________________________________
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
>   


-- 
Ludovic Dubost
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost

_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to