[xwiki-users] Adding velocity tools
Hi, I wish to add some velocity tools which can be using from my velocity context. To start with I would like to add some generic tools like ListTool provided by org.apache.velocity.tools.generic. In future I would also like to add my custom tools. So is there any way that I can add these to xwiki via some config files and use them in my .vm templates or wiki code. Thanks Sachin ----- http://www.assembla.com/wiki/show/sachin_mittal about me: -- View this message in context: http://www.nabble.com/Adding-velocity-tools-tp17315159p17315159.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi Sachin, On May 19, 2008, at 11:52 AM, Sachin Mittal wrote:
Hi, I wish to add some velocity tools which can be using from my velocity context. To start with I would like to add some generic tools like ListTool provided by org.apache.velocity.tools.generic.
This is already included in 1.4.
In future I would also like to add my custom tools.
So is there any way that I can add these to xwiki via some config files and use them in my .vm templates or wiki code.
In 1.4 you can do that by editing the components.xml file in xwiki- velocity jar (you can put a copy of it in web-inf/classes). Alternatively it might be possible to edit plexus.xml to provide an override of what's defined in components.xml but I haven't tried it yet. Again please note that this has not been tested yet so I don't know precisely how to configure it but it should be possible. Thanks -Vincent
participants (2)
-
Sachin Mittal -
Vincent Massol