2022.2

Table Of Contents
equivalenttothemarginpropertyinCSS.
5. ClickOK,orclickApplytoapplythechangeswithoutclosingthedialog.
Personalizing content
Variable-dataprintingisaformofdigitalprintinginwhichelementssuchastextandgraphicsmaybe
changedusinginformationfromadatabaseordatafile.Itprintsuniquedocumentswithcustomized
messagesforeachcustomer.ThisisexactlywhatyoucandowithOLConnect:usingvariabledatayou
canpersonalizeyourcompany'scommunications(includingbutnotlimitedtoprintedmatter).
Beforeyoucanstartpersonalizingthecontentofatemplate,youmustopenadatafileordatabase;
see:"Loadingdata"onpage299.
Themostcommonwaystopersonalizetemplatesarelistedbelow.
Variable data in the text
Variabledatacanbeinsertedinatemplatedirectly.Forexample,ifadatafieldinyourdataholdsaper-
son'slastname,thenameofthatdatafieldcanbeputinthetemplate,inanexpressionoraplace-
holder.Whenthetemplateismergedwiththedata,theexpressionorplaceholdergetsreplacedwitha
value,inthiscase,aperson'slastname.
Expressionslooklikethis:{{FieldName}}.Theygetreplacedwithdatafromthecurrentrecordbythe
HandlebarslibrarywhichisintegratedinOLConnect.Theadvantageofexpressionsisthatfewer
scriptsandsometimesnoscriptsatallareneededinatemplate.See"Variabledataintext:expres-
sions"onpage307.
Placeholdersrequireascripttoreplacethem.See"Variabledataintext:scriptsandplaceholders"on
page311.
Conditional content
Inatemplateyoumaywanttorevealcontent-textorimages-toonegroupofrecipients,buthideit
fromothers.YoucanuseaConditionalScriptWizardtoachievethis,ifyouhaveadatafieldinyour
dataonthebasisofwhichaconditioncanbeset.See"Showingcontentconditionally"onpage318.
ConditionalPrintsections
EntirePrintsectionscanbeincludedinoromittedfromtheoutputonthebasisofoneormorevaluesin
variabledata.See"ConditionalPrintsections"onpage322.
Dynamic images and Print section backgrounds
DynamicImagesaredynamicinthesensethattheyarereplacedbyanotherimagewhenadatafield
containsacertainvalue.Thinkofasignatureimagebeingswappedbasedonthesender'sname,for
example.YoucanusetheDynamicImageScriptWizardtomakethishappen;see"Dynamicimages"
onpage324.
Page 297