Re: [xwiki-users] #includeMacros("macrosDocument")

2008-03-13 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Sergiu Dumitriu wrote: >> Just looked at the code to see how it works. >> >> Registering in velocity.properties causes the file to be parsed once >> when the platform starts. >> >> Registering in XWikiPreferences causes the file to be parsed for each >> line (!) of the parsed document. >> >>

Re: [xwiki-users] #includeMacros("macrosDocument")

2008-03-13 Thread Sergiu Dumitriu
[Ricardo Rodriguez] Your EPEC Network ICT Team wrote: > Guillaume Lerouge wrote: >> First you need to put all your macros in one page, let's say >> XWiki.MyMacros . Then you'll have to go to the Administration, Tab >> Preferences, Line Advanced. Then put the name of your page in the >> Velocity

Re: [xwiki-users] #includeMacros("macrosDocument")

2008-03-13 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Guillaume Lerouge wrote: > First you need to put all your macros in one page, let's say > XWiki.MyMacros . Then you'll have to go to the Administration, Tab > Preferences, Line Advanced. Then put the name of your page in the > Velocity Macro Pages field (you can put only one page there for > pe

Re: [xwiki-users] #includeMacros("macrosDocument")

2008-03-13 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Sergiu Dumitriu wrote: > 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). > Thanks Sergiu. This sure

Re: [xwiki-users] #includeMacros("macrosDocument")

2008-03-13 Thread Guillaume Lerouge
Hi Ricardo, > 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 the

Re: [xwiki-users] #includeMacros("macrosDocument")

2008-03-13 Thread Sergiu Dumitriu
[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 us

[xwiki-users] #includeMacros("macrosDocument")

2008-03-13 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
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 c