2022.2

Table Of Contents
Note: RemotesnippetsareexpectedtobeUTF-8encoded.
Creating a snippet
Tostartcreatingasnippetfromscratch:
1. OntheResourcespane,right-clicktheSnippetsfolderandselectNew.
2. Selectthetypeofsnippetthatyouwanttocreate:HTMLfile,JSONfileorHandlebars template.
3. Givethesnippetaname.
Tip: ItisalsopossibletocreateanewHTMLsnippetfromanexistingpieceofcontentinthetem-
plate;see"UsingcontenttocreateanHTMLsnippet"onthenextpage.
Adding a snippet to a section
Eachtypeofsnippetsisuseddifferently;see"AddinganHTMLsnippettoasection"onthenextpage,
"UsingaJSONsnippet"onpage254and"UsingHandlebarstemplates:examples"onpage342.
Editing a snippet
Toeditasnippet,openthesnippetfilebydouble-clickingitontheResourcespane.
Bydefault,anHTML snippetthatisbeingusedassharedcontentcanalsobemodifiedinasection
whereitisused.Thisbehaviourcanbechanged;see"Editingasnippet"onthenextpage
Renaming a snippet
Torenameasnippet,right-clickitontheResourcespaneintheSnippetsfolderandselectRename.
IfyourenameanHTML snippetthatwasinsertedintoasectionassharedcontent,youneedtoupdate
thereferencetothesnippetmanually;see"Renamingasnippet"onpage254.
Translating a snippet
Snippetsinamultilingualtemplategettranslatedatthemomenttheyareinsertedintheoutput,ifthe
textistaggedfortranslation.Formoreinformationsee"Translatingtemplates"onpage415and"Tag-
gingtextinsnippets"onpage419.
HTML snippets
HTMLsnippetscancontainanycontentsthatasectioncanhave,suchastext,images,variabledata,
dynamictables,etc.Justlikeothertypesofsnippets,HTMLsnippetsarestoredintheSnippetsfolder
ontheResourcespane,buttheirfilenameendsin.html.
ThistopiccontainsinformationthatonlyappliestoHTMLsnippets.Ifyouwanttoknowhowtoaddan
existing(remote)snippettotheresources,orhowtocreateanemptyHTMLsnippet,pleasesee"Snip-
pets"onpage250.
Page 252