2022.1

Table Of Contents
The Media contains the virtual stationery. Whether this is included in or omitted from the final
output depends on a setting in the Output Creation Preset.
Personalization is mostly done via simple text scripts. Such scripts look for a text surrounded
by @ (e.g. @city@) and replace that by the correct data. To add a text script you just drag-and-
drop data onto the template. (See: "Variable Data" on page846.)
A few scripts are a little bit more sophisticated.
l The sales_rep script combines some data fields and adds a line break. Double-click the
script to open the Text Script Wizard with which this script was made. (See: "Using the
Text Script Wizard" on page849.)
l The Promo script shows or hides a paragraph (with the ID 'promo') depending on
whether the customer's address is in Montréal. (See: "Showing content conditionally" on
page856.)
l The year script changes the year in the conditional paragraph to the current year. This
script only has to look for @year@ in an element that has the ID 'promo', instead of in the
entire letter, which makes it run faster.
l The Dynamic Signature script switches the signature, with a file name based on a data
field. (See: "Dynamic images" on page864.)
l The sender's address is adjusted depending on where the customer lives. The two
different sender's addresses are saved in snippets. (See: "Loading a snippet via a script"
on page945.)
Styling is done via CSS. The context_all_styles.css file contains style rules for certain HTML
elements (level 1 and 2 headings) and for elements with a certain class or ID.
The data mapping
The data with which the template is merged come from an XML file: Sample Data.xml. They
are extracted from the XML file with a data mapping configuration: , made with the DataMapper
module in the Designer.
The data mapping configuration is very straightforward. It extracts all data without modifications
and it does no pre- or post-processing. Simple data mapping configurations like this are made
with the XML Data Mapping Wizard (see: "Using the wizard for XML files" on page237). The
wizard creates a configuration with only one step: the Extract All step.
Of course, this will only work with the appropriate data files. This data mapping configuration
was designed for XML files that are structured like this file: Sample Data.xml.
The sample file is located in the Configurations\Data folder, but you will also see it when you
Page 161