1.7

Table Of Contents
Snippets
A snippet is a small, ready-to-use piece of content in a file. Snippets can be re-used within the
same template, in all contexts and sections. They can contain any contents that a section can
have, such as text, images, variable data, dynamic tables, etc.
Normally, a snippet is an HTML file, but it can also be a JSON file.
When a snippet is added to different sections or contexts, it is displayed according to the
section's or context's style sheet. This means that the same content can look different
depending on the styles applied to the section or context, without changing the content.
Tip
It is possible to open and edit any HTML or JSON file in the Designer: select File > Open, select
All files (*.*) as the file type and then select a HTML or JSON file.
Adding a snippet to the Resources
Before adding a snippet:
l Import the resource files that are related to the snippet, such as image files and CSS files,
into the template file. Drag and drop the files to the corresponding folders (Images and
Stylesheets, respectively) on the Resources pane. If you want to use external images,
see "Images" on page475.
l
Drag the snippet itself to the Snippets folder on the Resources pane, or create a new
snippet from an existing piece of content in the template (see "Creating a snippet" on
page488).
Remote snippets
A remote snippet is an HTML file that is not located within your template file but is hosted on a
Content Management System or other location.
To add a remote snippet:
Page 486