1.7

Table Of Contents
1.
Right-click the Snippets folder on the Resources pane, and click New Remote Snippet.
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.
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.
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.
When a snippet is being used as shared content, the contents of the snippet itself are not added
to the page. Modifying the snippet on the page actually modifies the snippet's source. If a
snippet is used in multiple locations (such as different contexts and sections), modifying one
instance will modify all of them at once.
Note
Remote snippets inserted as shared content cannot be changed from within the Designer. Of course,
their source file can be edited outside of the Designer. When that happens, the changes will become
visible in remote snippets that are inserted as shared content.
Via a script
In addition to the drag-and-drop method, it is possible, and often useful, to insert a snippet or
part of it, using a script; for remote snippets this is normal practice. See "Loading a snippet via
a script" on page568.
Page 487