1.4

Note
Fields from the Data Model Pane can be dragged directly into the Scripts pane to create a Text
Script. This is useful if, for instance, when using snippets that already contain placeholders for text
scripts. Additionally, Text scripts can be dragged into any section to add the script's placeholder at
the insert location.
Script Properties
Scripts are used to modify the contents of the template, as its output is produced.
Here are the properties of a regular Script:
l
Name: The name of the script, making it easier to identify it.
l
Find: The Selector or Text to apply the result of the script to.
l
Selector: Uses CSS selectors to find the element to which the script applies.
l
Text: Uses text as a trigger for the script. The script applies to all instances of the
text found in the template.
l
Selector and Text: Uses text as a trigger for the script but only applies to text within
the specified Selector.
l
Expression: This box contains the script itself.
l
OK: Click to save any changes made to the script, apply the changes in the template, and
close the dialog.
l
Cancel: Click to close the dialog without saving changes.
l
Apply: Saves changes made to the script and applies the changes in the template
without closing the dialog.
In PlanetPress Connect Designer, scripts are built using the Connect JavaScript API. For more
information, see "API" on page 174.
Script Folder Properties
The Script Folder Properties dialog controls when scripts are executed in the output, as well as
the name of the script folder.
This dialog has the following properties:
Page 505