2021.1

Table Of Contents
l Collapse All: Collapses all the folders, hiding the scripts inside of them.
Scripts Pane filter
To quickly find a certain script or piece of code, type a search text in the filter field located
below the buttons in the Scripts pane.
The Scripts Pane will then only display scripts of which the name, selector or content matches
the search text. This is case insensitive.
Scripts Pane column
l Name: The name added to better identify the script.
l Selector: Displays the initial text or selector that the script applies to. See "Selectors in
Connect" on page888. Control Scripts and Post Pagination Scripts do not have a
selector (see "Control Scripts" on page903 and "Post Pagination Scripts" on page919).
Tip
Fields from the Data Model pane can be dragged directly into the Scripts pane to create a
Text Script. Additionally, Text scripts can be dragged into any section to add the script's
placeholder at the insert location. See "Variable Data" on page796.
Contextual menu options
l New: Click to create a new script or folder. See "Buttons" on page1066 for a description
of all options. Which script types are available depends on the current section and script
folder.
l Duplicate: Click to create an exact copy of the script.
l Delete: Click to delete the selected script. This does not delete any element or text in the
template itself.
l Rename: Click to open a dialog to rename the script. This is the same as changing the
Name field in the Edit Script window, which can be opened by double-clicking the script.
l Enable/Disable: Click to trigger the script to be enabled or disabled. Disabled scripts are
greyed out and italic and will not be executed. See "Enable/disable scripts" on page876
l Import: load a script from a Scripts file (*.OL-script).
l Export: save the script to a Scripts file (*.OL-script).
Page 1068