2022.1

Table Of Contents
Scripts pane
The Scripts pane contains all of the scripts that are used to replace data in a template, or to
modify its look; see "Personalizing content" on page830.
The scripts are stored in three groups: Control, Standard and Post Pagination, depending on
when they run (see "The script flow: when scripts run" on page938).
Note
The scripts in each of the main folders - Control, Standard and Post Pagination - are
executed top-to-bottom. They can be dragged up or down in the pane to change their
order of execution. For example, content-loading scripts (snippets with variable data, for
instance) must come before scripts that replace data within loaded contents.
The Script pane allows to add and edit scripts and to manage scripts, or instance by organizing
them in subfolders and enabling/disabling them (see "Managing scripts" on page925).
Scripts can be exported and imported via the buttons or through drag & drop between the
Scripts pane and any location on the computer.
Note
Scripts included on the Scripts pane are completely distinct from the JavaScript
resources found in the "Resources pane" on page1128 (see "Using JavaScript" on
page597).
Think of scripts as server-side in the sense that they are executed through the Connect
modules (Server and Content Creation especially). Scripts have access to the whole
PlanetPress Connect JavaScript API (see "Standard Script API" on page1343), such as
the
record
object.
JavaScript resources, on the other hand, are only executed after the content creation is
done, generally in a browser.
Page 1135