1.6

Table Of Contents
Tip
For more ways to optimize scripts, see "Optimizing scripts" on page539.
Enable/disable scripts
A disabled script will not run at all when the template is merged with a record set to generate
output. Disabling script execution in certain contexts or sections helps with performance, since
scripts normally run, whether or not their placeholder or selector is present in your template. It is
highly recommended to disable any script that is not relevant to specific sections or contexts.
When you disable a folder, all scripts in the folder will be disabled.
To enable or disable a script or a folder:
l
On the Scripts pane, right-click the script or the folder and click Disable (if the script or
folder was enabled) or Enable (if the script or folder was disabled).
Tip
For more ways to optimize scripts, see "Optimizing scripts" on page539.
Import/export scripts
Scripts can be exported - one at a time - for use in other templates. To do this:
1.
On the Scriptspane, click on a script, and then click theExportbutton, or right-click a
script and selectExport.
2.
Give the script a name and click OK.
To import a script in a template:
l
On the Scriptspane, click theImportbutton. Find the script and clickOK
Files that a script may refer to, such as images, snippets and fonts, are not exported or imported
together with a script.
Page 535