2022.2

Table Of Contents
l
Theyearscriptchangestheyearintheconditionalparagraphtothecurrentyear.Thisscriptonly
hastolookfor@year@inanelementthathastheID'promo',insteadofintheentireletter,which
makesitrunfaster.
l
TheDynamic Signaturescriptswitchesthesignature,withafilenamebasedonadatafield.
(See:"Dynamicimages"onpage741.)
l
Thesender'saddressisadjusteddependingonwherethecustomerlives.Thetwodifferent
sender'saddressesaresavedinsnippets.(See:"Loadingasnippetviaascript"onpage831.)
StylingisdoneviaCSS.Thecontext_all_styles.cssfilecontainsstylerulesforcertainHTMLelements
(level1and2headings)andforelementswithacertainclassorID.
The data mapping
ThedatawithwhichthetemplateismergedcomefromanXMLfile:Sample Data.xml.Theyareextrac-
tedfromtheXMLfilewithadatamappingconfiguration:,madewiththeDataMappermoduleinthe
Designer.
Thedatamappingconfigurationisverystraightforward.Itextractsalldatawithoutmodificationsandit
doesnopre-orpost-processing.SimpledatamappingconfigurationslikethisaremadewiththeXML
DataMappingWizard(see:"UsingthewizardforXMLfiles"onpage213).Thewizardcreatesacon-
figurationwithonlyonestep:theExtract Allstep.
Ofcourse,thiswillonlyworkwiththeappropriatedatafiles.Thisdatamappingconfigurationwas
designedforXMLfilesthatarestructuredlikethisfile:Sample Data.xml.
ThesamplefileislocatedintheConfigurations\Datafolder,butyouwillalsoseeitwhenyouopenthe
datamappingconfigurationitself:selectFile > Openfromthemenu;browsetotheCon-
figurations\Resourcesfolderandselectthedatamappingconfiguration:PR_PROM Data XML.
Print settings
ThePrintcontextandPrintsectionscanhavetheirownprintsettings,suchasDuplexprintingorbind-
ingstyle(see"PrintsettingsinthePrintcontextandsections"onpage444).Butinthistemplate,they
don'thaveany.Thewaytheletterisoutputtedisdetermined(mostly)byanOutput Creation Preset.
TheSampleProjectinstallssixOutputCreationPresets;twoforeachtypeofoutput.Peroutputtype,
allsettingsintheOutputCreationPresetsarethesame,exceptone:PrintVirtualStationery.Theones
thathavethisoptionenabledwillincludetheMedia-theVirtualStationery-intheoutput.Theotherpre-
setswillnotprinttheMedia.
OnlytheselectedOutputCreationPresetisputtouseintheWorkflowconfiguration.
Toseetheexactsettings,openanOutputCreationPresetintheDesigner:firstselectFile > Output
Creation Presetsfromthemenu;thenclicktheImportbuttonandbrowsetotheCon-
figurations\Resources\Output presetsfoldertoselectthepreset.
Page 150