2022.2

Table Of Contents
Field Type Description
contexts Array Arrayofcontexts(see"context"onpage842)availableinthetemplate.Thecontexts
containthesections(see"section"onpage848).
images Array Thelistofimageresources(see"ImageResource"onpage839)includedinthe
template.
masterpages Array ArrayofMasterPages(see"masterpage"onpage817)availableinthetemplate.
"media"on
page819
Array Mediaavailabletothistemplate(see"Media"onpage144).Foreachofthemyoucan
specify,enableandpositionthestationery'sfrontandback.
"properties"on
page836
Properties Thisobjectcontainsalldefaultpropertiesofthetemplateaswellasanycustom
properties.(Onthemenu,selectFile > Propertiestoviewandcomplementthe
fileproperties.See"FilePropertiesdialog"onpage442).
Example
ThefollowingControlScriptretrievestwoPrintsections.Then,dependingonavalueinthecurrent
record,itenablesonesectionortheother,sothatonlyoneofthetwosectionsappearsintheoutput.
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;
}
properties
Thepropertiesobjectinsidethetemplateobject(see"template"onpage835)containsalldefault
propertiesofthetemplatefileaswellasanycustomproperties.
Toviewandcomplementthefileproperties,selectFile > Propertiesonthemenu.See"FileProperties
dialog"onpage442.
Followingarethedefaultproperties.
Field Type Description
application String Applicationversionwhenthedocumentwaslastsaved
author String Originalauthorofthedocument
Page 734