Snippets
Snippets are inserted into the page using the WYSIWYG Editor and become a part of the page. They provide an easier and standardized way to insert design / content elements. Some examples include tabs, FAQ drop down lists and Custom Headers. The objective of snippets is to give users without HTML experience the ability to create more complex elements.
Most of our snippets are what we call Table Transformations. In the WYSIWYG it will look like a table, however in Preview Mode within Omni CMS and when your file is published out it will "Transform" into typically a more complex set of code. Not sure which Snippets your page is using? Go to the WYSIWYG Editor of your page, and look for any Snippet Edit Tables. The top row of the table will include the name of the snippet. Almost all of the Snippets will include the type of the snippet at the top of the table.
- You can nest snippets. You will find that some of our pages have nested snippets on the page to show you about various snippets.
- If you have a new type of snippet you would like to see added, email webcommunications@nsuok.edu with your idea. If it is useful for the rest of campus, it may be added.
Using Snippets on Pages
To insert a snippet on a page you're editing:
- While in an editable region, click Insert Snippet
.
- In the "Choose Snippet" box, click a snippet name 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.
- Click Insert.
- 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.
- Save the page 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 press Backspace or Delete.