2022.2

Table Of Contents
Addingpagenumbers
PagenumberscanonlybeusedinthePrintcontext.See"Pagenumbers"onpage136.
HTMLelement:p,h,liandothers
Whenaddingelements,suchastext,imagesoratable,tothecontentofatemplate,youareactually
constructinganHTMLfile,whichyoucanseeandeditontheSourcetab(seealso:"EditingHTML"on
page171).
InHTML,textcanbecontainedinmanydifferentelements:paragraphs,spanelements,lineitemsand
tablecells,forexample.
TheHTMLtagofaparagraphis<p>.Theparagraphshouldbefollowedbyaclosingtag:</p>.
AlinebreaklookslikethisinHTML:<br>.
OnlytheSourcetabrequiresthatyouwriteHTML.InDesignorPreviewmodetheeditoraddsHTML
tagsasneeded.
Formattingtext
Textcanbestyled,colored,centered,indentedetc.Itcanevenbedisplayedsothatitreadsfromright
toleft.See"Stylingtextandparagraphs"onpage271.
InalltemplatesyoucanusethefontsthatareprovidedwiththeDesigner,aswellasimportedfonts;
see"Fonts"onpage291.
Translatingtext
OLConnecttemplatescanbemultilingual.Forinformationaboutmultilingualtemplatesandhowto
createthem,see"Translatingtemplates"onpage415.
Snippets
Asnippetisasmall,ready-to-usepieceofcontentinafile.Snippetscanbere-usedwithinthesame
template,inallcontexts,sectionsandscripts.
Therearethreetypesofsnippets:
l
HTMLsnippetscancontainanycontentsthatasectioncanhave,suchastext,images,variable
data,dynamictables,etc.,see"HTMLsnippets"onpage252.
l
JSONfilescontaindata;see"JSONsnippets"onpage254
l
HandlebarstemplatescancontainHTMLandHandlebarsexpressions;see"Handlebarstem-
plates"onpage339.
Theinformationinthistopicappliestoalloratleasttwotypesofsnippets.
Page 250