2022.1

Table Of Contents
You only need to call merge.section.paginate() in a Post Pagination Script if the script has
added or removed content to such an extent that the page boundaries need to be renewed.
For an example see: "Creating a Table Of Contents" on page443.
template
The template object represents the template with all its contexts and sections. It is used
frequently in Control Scripts (see "Control Scripts" on page425 and "Control Script API" on
page917) but it can also be used in Standard Scripts.
It is retrieved via the merge object: merge.template (see "merge" on page975).
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
page951).
Field Type Description
contexts Array Array of contexts (see "context" on
page955) available in the template. The
contexts contain the sections (see "section"
on page964).
images Array The list of image resources (see
"ImageResource" on page951) included in
the template.
masterpages Array Array of Master Pages (see "masterpage"
on page920) available in the template.
"media" on
page923
Array Media available to this template (see
"Media" on page155). 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
Page 946