Skip Navigation
Expand
Using snippets
Answer ID 2317   |   Last Review Date 10/31/2018

What is a snippet and how do I use one?

Environment:

Snippets

Resolution:

Snippets consist of small pieces of commonly used content that can be inserted in documents, mailings, templates, surveys and campaigns. You can easily create and store snippets, and add them to your documents at a later time. They can be reused as many times as you need.  Snippets are kept in the Content Library.

Snippets are usually in HTML form, but can be created as plain text as well.


To create a snippet:

  1. From the Content Library > Snippets Explorer, click the New button on the ribbon.
     
  2. The content pane displays a list of available options for creating the snippet.
     
  3. Select the type of snippet you want to create:

    Begin With Blank Content—Select this option to open the editor with no content.

    Copy Existing Snippet—Select this option to browse for and open a copy of an existing document or template.

    Upload HTML Content—Select this option to browse for existing HTML content.

  4. Click Save. If this is the first time you have saved the snippet, you are prompted for a filename and save location.


To edit a snippet:

  1. Click Content Library on the navigation pane.
     
  2. Double-click Snippets Explorers. The Snippets explorer opens.
     
  3. To edit a snippet, right click the snippet and select open.
  4. Make any changes you want.  
     
  5. Click Save.

To use a snippet, when in the document, mailing, template or campaign you are editing or creating, simply click on the Insert Snippet button from the right frame. A list of snippets will come up and choose the snippet you want to insert.

Note: When creating a template intended for use in mailings, tracked links and other Oracle Service Cloud specific links should not be included within the template.  If this is done, when a document utilizing the template is added to a mailing, the editor will encounter an "XML Parse Error".

Available Languages for this Answer:

Notify Me
The page will refresh upon submission. Any pending input will be lost.