XWikiSyntaxScripts

Warning
For security reasons, the document is displayed in restricted mode as it is not the current version. There may be differences and errors due to this.

Programming

Scripts

1.0 Scripts

Information

In XWiki Syntax 1.0 it was possible to enter Velocity scripts anywhere directly in the page. This can lead to issues for example when the user was involuntarily entering Velocity content. It is also performance hungry for pages not requiring Velocity content. There are several other technical limitations. Same goes for entering Groovy scripts.

FeatureXWiki Syntax 1.0
Velocity script
#set ($var = "whatever")
Groovy script
<%
def var = "whatever"
%>

2.0 Scripts

FeatureXWiki Syntax Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [cqm8:XWiki.XWikiSyntaxScripts]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.
Velocity script
{{velocity}}
#set ($var = "whatever")
{{/velocity}}
Groovy script
{{groovy}}
def var = "whatever"
{{/groovy}}