2018.2

Table Of Contents
Snippets
Snippets are pieces of HTML or JSON code that can be inserted within sections and master
pages, dynamically or statically. See "Snippets" on page248 for more information.
Contextual menu
l
New HTML Snippet: Click to create a new HTML Snippet resource.
l
New JSON Snippet: Click to create a new JSON Snippet resource.
l
New Folder: Click to create a new folder to organize resources more easily.
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 in a template, or to
modify its look; see "Personalizing Content" on page292.
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363).
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 page346).
Scripts can be exported and imported via the buttons or through drag & drop between the
Scripts pane and any location on the computer.
Page 490