1.7

Table Of Contents
addPolicy('b');
}
function addPolicy(policy){
var resourceUrl = 'images/policy-' + policy + '.pdf';
var clone = printSections["Policy"].clone();
clone.name = "policy_" + policy;
clone.background.url = resourceUrl;
clone.enabled = true;
printSections["Policy"].addAfter(clone);
}
template
The template object represents the template with all its contexts and sections. It is used
frequently in Control Scripts (see "Control Scripts" on page258 and "Control Script API" on
page516).
It is retrieved via the merge object: merge.template (see "merge" on page519).
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
page530).
Field Type Description
contexts Array Array of contexts (see "context" on page518)
available in the template. The contexts contain the
sections (see "section" on page520).
media Array Media available to this template (see "Media" on
page91).
properties 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).
Page 527