2019.1

Table Of Contents
Field Type Description
masterpages Array Array of Master Pages available in the template.
"media" on
page1284
Array Media available to this template (see "Media" on
page489). For each of them you can specify,
enable and position the stationery's front and
back.
"properties"
on the next
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879).
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.
var printSections = merge.template.contexts.PRINT.sections;
printSections['Section EN'].enabled = false;
printSections['Section FR'].enabled = false;
if(record.fields.Language === 'FR'){
printSections['Section FR'].enabled = true;
} else {
printSections['Section EN'].enabled = true;
}
masterpages
The masterpages Array contains all Master Pages in the current template. It can only be used to
set a Master Page's header and footer in a Control Script (see "Control Scripts" on page828
and "Control Script API" on page1280).
Note that Master Pages are only used in a Print context (see "Master Pages" on page486).
Page 1303