2022.2

Table Of Contents
Togivetheattachmentanothername,youhavetoreplacetheboldpartofthecodebythatnewname.
Forexample:
results.append(query("<linkrel=related>").attr("title","Invoice.pdf").attr("href",result));
Ofcourse,youcanalsousedatafieldvalueshere,forexample:results.append(query("<linkrel-
l=related>").attr("title",record.fields.invoice_number + ".pdf").attr("href",result));
NotethattheWizardcannolongerbeusedonceyouhaveeditedandsavedthescript.
Note: Forattachmentnames,itisrecommendedtouseonlyUS-ASCIIcharacters.Otherchar-
actersmaynotbesupportedbyallemailserversandclients.
Content elements
Onceyouhavecreatedatemplate,itcanbefilledwithallkindsofelements.Alltypesofelementsare
listedonthispage.
Thereareseveralwaystoinsertelements,see"Insertinganelement"onpage173.
EachelementcanhaveanIDandaclass,aswellasanumberofotherproperties,dependingonthe
element'stype.Whenanelementisselected,itspropertiescanbechanged;see"Selectinganele-
ment"onpage174,"Attributes"onpage172and"Stylingandformattinganelement"onpage175.
ID'sandclassesareparticularlyusefulwithregardtovariabledata(see"Personalizingcontent"on
page297)andstyling(see"StylingtemplateswithCSSfiles"onpage261).
Whenyouaddelements,suchastext,imagesoratable,tothecontentofatemplate,youareactually
constructinganHTMLfile.ItispossibletoeditthesourceoftheHTMLfiledirectlyintheDesigner;see
"EditingHTML"onthenextpage.
Element types
Thefollowingtypesofcontentcanbeaddedtothecontentofatemplate:
l
"Images"onpage239and"Dynamicimages"onpage324
l
"Textandspecialcharacters"onpage249
l
"Date"onpage236
l
"Table"onpage244
l
"Boxes"onpage226:PositionedBox,InlineBox,DivandSpan
Tip: Wrappingelementsinabox(see"Boxes"onpage226)orinasemanticHTMLele-
mentmakesiteasiertotargettheminascriptorinastylesheet.Placethecursorintheele-
mentorselectmultipleelements.Then,onthemenu,clickInsert > Wrap in Box.Youcan
Page 170