Changes for page Velocity API

Last modified by Admin on 2024/03/28 10:54

<
From version < 34.3 >
edited by Admin
on 2016/07/30 00:13
To version < 35.1 >
edited by Vincent Massol
on 2016/08/25 15:28
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.Admin
1 +xwiki:XWiki.VincentMassol
ExtensionCode.ExtensionClass[0]
Description
... ... @@ -90,3 +90,17 @@
90 90  ...
91 91  {{/code}}
92 92  
93 +Starting with XWiki 8.3M2/7.4.5/8.1.2, it's possible to name the Velocity variable in which the exception will be saved. For example:
94 +
95 +{{code language="velocity"}}
96 +{{velocity}}
97 +#try("myexception")
98 +$services.query.xwql("zzzzz").execute()
99 +#end
100 +
101 +#if ($myexception != '')
102 + ... do something...
103 +#end
104 +{{/velocity}}
105 +{{/code}}
106 +
Show installed count
... ... @@ -1,0 +1,1 @@
1 +Yes

Get Connected