2019.2

Table Of Contents
template
The template object represents the template with all its contexts and sections. It is used
frequently in Control Scripts (see "Control Scripts" on page885 and "Control Script API" on
page1351).
It is retrieved via the merge object: merge.template (see "merge" on page1405).
Which contexts are available in the template can be queried using merge.template.contexts.
To get access to a specific context, you have to specify the ContextType (see "ContextType" on
page1383).
Field Type Description
contexts Array Array of contexts (see "context" on page1387)
available in the template. The contexts contain
the sections (see "section" on page1395).
masterpages Array Array of Master Pages (see "masterpage" on
page1355) available in the template.
"media" on
page1357
Array Media available to this template (see "Media" on
page508). For each of them you can specify,
enable and position the stationery's front and
back.
"properties"
on the facing
page
Properties
This object contains all default properties of the
template as well as any custom properties. (On
the menu, select File > Properties to view and
complement the file properties. See "File
Properties dialog" on page936).
Example
The following Control Script retrieves two Print sections. Then, depending on a value in the
current record, it enables one section or the other, so that only one of the two sections appears
in the output.
Page 1379