2022.2

Table Of Contents
Note: Beforeyoucanaddvariabledatafieldstothecontentsofyourtemplateyouneedtoload
datafromadatafileordatabase(see"Loadingdata"onpage299).
Writingexpressions
Toinsertanexpressionthatgetsreplacedwiththevalueofafieldinyourdata,youcansimplywrite
thefieldnamebetweendoublecurlybraces:{{FieldName}}.
l
Awhitespacebeforeandafterthefieldnameisaccepted,e.g.{{ FirstName }}.
l
Ifthefieldnamecontainsaspaceyouwillalsoneedtoencloseitinsquarebrackets:{{[Field
Name]}}.
ThisworksinDesignviewandinSourceview.InSourceviewyoucouldevenplaceexpressionsinside
HTMLtagsandattributes.
Insertingexpressionsviadrag-and-drop/double-click
Thedrag-and-dropordouble-clickmethodisbestfordatathatdonotneedtobeprecededorfol-
lowedbyaspace,linebreakortext.Otherwiseitisbettertousethewizard(see"UsingtheHelperWiz-
ard"onpage310).
1. OpenthesectionorMasterPageyouwanttoaddthedatafieldto.
2. Either:
l
Drag and dropadatafieldfromtheData Modelpaneatthebottomrightintothecontent
ofyourtemplate.
Toselectandinsertmultipledatafieldsatthesametime,youcouldpressShiftorCtrl,
whilstselectingfieldsintheDataModelpane,butitwouldbebettertousethewizard(see
"UsingtheHelperWizard"onpage310).
l
Placethecursorinthetemplatewhereyouwantthedatatobeinsertedandthendouble-
clickthedatafieldintheDataModelpane.
ThisworksinDesignviewandinSourceview.
Tip: PresstheCtrlkeywhile draggingtowraptheexpression(s)inanabsolutepositionedbox(a
div)atthecursorposition.
AbsolutepositionedboxesareparticularlyusefulwhenthedocumentmainlyconsistsofaPDF
usedasthebackgroundimageofasection(see"UsingaPDFfileorotherimageasbackground"
onpage130).
Whathappensisthat:
Page 308