1.4

l
Rename: Click to open the resource's Rename. This is the same as pressing the F2 key
while the resource is selected.
l
Delete: Click to delete the resource. This is the same as pressing the Delete key while
the resource is selected.
Scripts Pane
The Scripts pane contains all of the scripts that are used to replace data on your page, or to
modify its look. Scripts can be exported and imported via the buttons or through drag & drop
between the Scripts Pane and any location on the computer.
Technical
Scripts included here are completely distinct from the JavaScript resources found in the Resources
Pane. 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 "API" on page 174), such as the Record. JavaScript resources, on the
other hand, are only executed in a client after the content creation is done, which is generally
in the browser.
Note
Scripts are always executed top-to-bottom. They can be dragged higher or lower in the pane to
change their order of execution. For example, content loading scripts (loading snippets, for instance)
must be present before scripts that replace data within that loaded contents.
Buttons
l
Import...: Click to open a standard Open dialog to import a script. The script must have
the .OL-script extension.
l
Export...: Click to open a standard Save As dialog to save the currently selected scripts to
disk. These scripts can be re-used in other templates. If more than one script is selected,
they are all saved to a single file. If some scripts are inside folders, this folder structure is
kept and will be restored when the scripts are imported.
Page 503