2022.2

Table Of Contents
Tip: ItispossibletoopenandeditanyexternalHTMLfileintheDesigner:selectFile > Open,
selectAll files (*.*)asthefiletypeandthenselectanHTMLfile.
UsingcontenttocreateanHTMLsnippet
ToturnapartofaletteroremailintoanHTMLsnippetforreuseinthecontentofatemplate:
1. Openthesectionandselectthepartorpartsthatshouldbesavedtoasnippet.
2. Right-clicktheselection,pointtoSnippetandclickCreatetocopytheselectedparttoanew
snippet,orCreate Shared Contenttocreatethenewsnippetandreplacetheselectedpartwith
areferencetothenewsnippet.
3. Givethesnippetaname.
AddinganHTMLsnippettoasection
Drag-and-drop
ToaddanHTMLsnippettothecontentofasection,dragthesnippetfromtheSnippetsfolderonthe
Resourcespanetothedesiredlocationinasection.
ChecktheoptionInsert as shared contenttoinsertareferencetotheoriginalsnippetinthetem-
plate,ratherthanacopyoftheoriginalsnippet.
Via a script
Inadditiontothedrag-and-dropmethod,itispossible,andoftenuseful,toinsertasnippetorpartofit,
usingascript;forremotesnippetsthisisnormalpractice.See"Loadingasnippetviaascript"on
page391.
Editingasnippet
Toeditasnippet,openthesnippetfilebydouble-clickingitontheResourcespane.
Editing shared content
Bydefault,anHTMLsnippetthatisbeingusedassharedcontentcanalsobemodifiedinasection
whereitisused.Thatwayyouactuallyadjustitssource.Thesnippetwillbechangedatalllocations
whereitisused.
Theoptiontomodifysharedcontentsnippetsfromwithinasectioncanbeturnedoff:
l
Inthemenu,selectView > Shared Content Editingtoenableordisableeditingofallshared
content.
l
Toenableordisableeditingonacasebycasebasis,youcanalsomanuallysetthecon-
Page 253