-
From the home page,
click Configure.
-
Select the OTScript Files tab.
-
Click New
to create a new file.
-
Click Edit
, rename the default name, and click
to validate the name.
-
Click Insert OTScript Method Example
.
A code suggestion appears in the coding area.
-
Enter, modify, or copy OTScript code corresponding to one or more methods.
-
To compile and save the code, click Save
.
Note:
If an error is found, a mark appears to identify the line in error, and
the error message is displayed in red below the editor. Only the first error is
visible.
Result:
The defined methods appear in the Data tab of the template editor for
all users. If no category is indicated in the code, methods are presented in the
Extensions category.