2022.2

Table Of Contents
Web resources
WebresourcesaresimplyaccessedusingafullURL.ThisURLneedstobepubliclyaccessible:ifyou
typeinthatURLinabrowserontheserver,itneedstobevisible.Authenticationispossibleonly
throughURLParameters:
(http://www.example.com/data.json?user=username&password=password)
orthroughHTTPBasicAuth:
(http://username:password@www.example.com/data.json).
Contexts
Contextsarepartsofatemplatethatareeachusedtogenerateaspecifictypeofoutput:EmailorPrint.
l
ThePrintcontextoutputsdocumentstoeitheraphysicalprinteroraPDFfile;see"Printcontext"
onpage122.
l
TheEmailcontextoutputsHTMLemail,composedofHTMLcodewithembeddedCSS.See
"Emailcontext"onpage157.
Whenanewtemplateismade,theContextappropriatetothatnewtemplateisautomaticallycreated,
includingonesection.Afteratemplatehasbeencreated,theothertwocontextscanbeaddedtoit;see
"Addingacontext"below.
Tip: WhenyouaddanEmailcontexttoanexistingtemplateyougeta'basicactionemail'.Thisis
oneofthe4typesofemailthatyoucanchoosefromwhenyoustartatemplatewithanEmail
TemplateWizard;see"CreatinganEmailtemplatewithaWizard"onpage154.
Outputtingandcombiningcontexts
Allcontextscanbepresentinanytemplateandtheycanallbeusedtooutputdocuments;see"Gen-
eratingEmailoutput"onpage876,"GeneratingPrintoutput"onpage858andGeneratingWeboutput.
Theycanevenbecombinedinoutput.
Ifpresentinthesametemplate,aPrintcontextcanbeattachedtoanEmailcontext.
YoucouldselectPrintsectionsbasedonavalueinthedatawithaConditionalPrintSectionsscript;
see"ConditionalPrintsections"onpage322.
Outputtingothercombinationsofcontexts,andselectingothersectionsbasedonavalueinthedata,
canbedoneviaaControlScript;see"ControlScripts"onpage398.
Addingacontext
Toaddacontext,right-clicktheContextsfolderontheResourcespaneandclickNew print context,
New email contextorNew web context.OruseContext > Addinthemainmenu.Onlyonecontext
Page 110