Skip to Content

Snippets

Snippets are a type of reusable content that once placed on a page, become part of the page's code. The snippet content is then edited in the WYSIWYG editor without affecting the original snippet file. Snippets are often used for pieces of content with specific formatting, such as tables, buttons, and displaying quotes or images. By using snippets, consistent formatting can be ensured across pages.

Snippet creation and management is accessible to level 9 and 10 users only, but any level user can place a snippet on a page.

Using Snippets on Pages

To insert a snippet on a page you're editing:

  1. While in an editable region, select the "Insert Snippet" icon (An icon of blue boxes or A black puzzle piece icon).
  2. Choose a snippet to add to the page. You can use the top dropdown to view a specific category, or filter snippets by name. Snippets are previewed on the right-hand side, but not all snippet styling renders, as some of that depends on which page the snippet is placed in.
  3. Click Insert to place the snippet on the page.
  4. Fill out the snippet as desired with content.
    • Oftentimes a snippet appears one way while editing and another in the page preview. A common type of snippet is a table transformation, where the snippet appears in the editable region as a table that you fill out. Then, when you save and preview, the information you entered in the table is placed in more complex styling.
    • The snippets on your site are unique to your page design. For specific questions about what content should go in a snippet, contact a web administrator at your institution.
  5. Save your changes and exit the editable region to see how the snippet displays.

Removing a snippet from a page depends on the snippet content. If it's a table, right-click the table and select "Delete Table." Otherwise, click and drag your cursor to highlight the unwanted content, and then hit Backspace or Delete.