2022.1

Table Of Contents
Renaming a snippet
To rename a snippet, right-click it on the Resources pane in the Snippets folder and select
Rename.
If you rename a snippet that was inserted into a section as shared content, you need to update
the reference to the snippet manually:
1. Open the section in which the snippet is used.
2. Switch to Source view.
3. Look for the <article> element in the HTML and replace the old snippet name with the
new name in the source attribute.
Translating a snippet
Snippets in a multilingual template get translated at the moment they are inserted in the output,
if the text is tagged for translation. For more information see "Translating templates" on
page463 and "Tagging text in snippets" on page467.
JSON snippets
JSON snippets are snippets that contain JSON data instead of text. Just like other types of
snippets, JSON snippets are stored in the Snippets folder on the Resources pane, but their
file name ends in .json.
This topic contains information that only applies to JSON snippets. If you want to know how to
add an existing (remote) snippet to the resources, or how to create an empty JSON snippet,
please see "Snippets" on page281.
Tip
It is possible to open and edit any external JSON file in the Designer: select File > Open,
select All files (*.*) as the file type and then select an HTML or JSON file.
Using a JSON snippet
Unlike HTML snippets, JSON Snippets cannot be inserted into the content directly, but they can
be accessed via a script using the loadjson() function.
Page 286