Changes for page Scripting

Last modified by Simon Urli on 2023/10/10

From version 9.1
edited by Vincent Massol
on 2008/11/17
Change comment: Added available velocity tools
To version 9.2
edited by Vincent Massol
on 2008/11/17
Change comment: Added details on how to add other Velocity tools to the velocity context

Summary

Details

Page properties
Content
... ... @@ -27,6 +27,8 @@
27 27  * [Escape Tool>http://velocity.apache.org/tools/releases/1.4/generic/EscapeTool.html]: *<tt>\$escapetool</tt>*
28 28  * [Sort Tool>http://velocity.apache.org/tools/releases/1.4/javadoc/org/apache/velocity/tools/generic/SortTool.html]: *<tt>\$sorttool</tt>*
29 29  
30 +#info("If you wish to add new Velocity tools you'll need to edit your <tt>WEB-INF/plexus.xml</tt> file and copy the full component definition for the <tt>org.xwiki.velocity.VelocityContextFactory</tt> role from this [Plexus Component Definition file>http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-velocity/src/main/resources/META-INF/plexus/components.xml]")
31 +
30 30  You can also [use HQL to query the XWiki database>velocityHqlExamples] from your velocity scripts.
31 31  
32 32  To include Velocity scripts in other Velocity scripts, see [How to include a velocity page into another page>DevGuide.IncludeInVelocity].

Get Connected