Changes for page Scripting

Last modified by Simon Urli on 2023/10/10

From version 12.1
edited by Vincent Massol
on 2009/10/02
Change comment: Fixed explanation for adding new velo tools
To version 13.1
edited by Vincent Massol
on 2009/10/02
Change comment: Added info on velo variables to control the docextra tabs and shortcuts

Summary

Details

Page properties
Content
... ... @@ -34,6 +34,27 @@
34 34  
35 35  To include Velocity scripts in other Velocity scripts, see [How to include a velocity page into another page>DevGuide.IncludeInVelocity].
36 36  
37 +1.1.1 Other Velocity Variables
38 +
39 +#info("These variables can be used but are subject to change in the future.")
40 +
41 +1.1.1.1 Controlling Whether to display Comments/History/Attachment/Information sections
42 +
43 +It's possible to control whether to display these sections by setting some velocity variable to "no":
44 +
45 +{code:none}
46 +#set ($showcomments = "no")
47 +#set ($showattachments = "no")
48 +#set ($showhistory = "no")
49 +#set ($showinformation = "no")
50 +{code}
51 +
52 +To remove them all you can set:
53 +
54 +{code:none}
55 +#set($docextras = [])
56 +{code}
57 +
37 37  1.1 XWiki's Groovy API
38 38  
39 39  Currently Groovy is only allowed for admins of a wiki (or users having the 'programming' right).

Get Connected