2021.1

Table Of Contents
Remote snippets
A remote snippet is an HTML or JSON file that is not located within your template file but is
hosted on a Content Management System or other external location.
To add a remote snippet:
1. Right-click the Snippets folder on the Resources pane, and click New Snippet >
Remote HTML file or Remote JSON file.
2. Enter a name for the file as it appears in the Snippets folder. This name is shown in the
Snippets folder with the .rhtml file extension for HTML, or .rjson for a JSON file.
3. Enter the URL for the remote resource. This must be a full URL, including the http:// or
https:// prefix, domain name, path and file name.
Note
Remote snippets may contain other resources, such as images. There is one limitation
though: only absolute paths are supported inside remote snippets. Images and other
resources referred to with a relative path (for example: images/img.gif) or root-relative
path (any path starting with a slash, for example: /base/images/img.gif) won't be available
in the template.
Note
Remote snippets are expected to be UTF-8 encoded.
Adding a snippet to a section
Drag-and-drop
To add the snippet to the content of a section, drag the snippet from the Snippets folder on the
Resources pane to the desired location in a section.
Check the option Insert as shared content to insert a reference to the original snippet in the
template, rather than a copy of the original snippet.
Page 734