2021.1

Table Of Contents
Field Type Description
page1433
is being merged.
Note! In Control Scripts, merge.section is only
available when the output channel is WEB. To make
sure that it is defined, use the following statement: if
(merge.channel == Channel.WEB &&
merge.context.type == ContextType.WEB) { ... }.
To retrieve any section in a Control Script, use:
merge.template.contexts.ContextType.Section
['Section name']; (for example:
merge.template.contexts.PRINT.sections["Section
EN"]).
In Post Pagination Scripts, only Print sections are
available.
"template"
on page1415
Template This object contains the template and all of its
contexts. It can be used to find out which contexts are
available in the template, using
merge.template.contexts (see "context" on
page1424) and to manipulate the sections in those
contexts (see "section" on page1433).
Pagination
The Pagination object that is accessed via the merge object (see "merge" on the previous page)
contains the total page count and sheet count of the entire Print context after pagination.
These properties are read-only and are only available in Post Pagination Scripts (see "Post
Pagination Scripts" on page919).
For information about where an element is located and the counts of pages and sheets in a
page bundle - a group of sections in which the page numbering continues - use "info()" on
page1431.
For the total page count, sheet count and start/end page numbers of a single section, use the
section object's "Pagination" on page1443 (see also: "section" on page1433).
Page 1445