What is a snippet?
- This allows a user to add a part or piece of the content to be displayed on pages in a faster way.
- The snippet can be placed anywhere on the site by using Curly Bracket, ex. {snippet_xx}
- Every snippet will link to an internal page, a PDF (or word document) or content for the full details.
Why you would use a snippet?
- If you are not familiar with code or programming this is the best tool for you to use. Snippets provide a way for you to insert ready-made code into your pages using the curly bracket. A user can display a small piece of content that can be reused throughout the site. Snippet features can also be added which give a rich functionality or user experience and interface.
How to create a new Snippet
- Go to Admin Dashboard > Modules > Snippets > Snippet Listing
- Click Create New Snippet
- Enter the title, select categories abstract and order
- Title - the title or name of your snippet
- Categories - select the category/categories where you want to include or group your snippet.
- Abstract - the content of your snippet
- Click the Create button
How to edit/view details/delete a snippet
- Go to Admin Dashboard > Modules > Snippets > Snippet Listing
- Click the Edit/View Details/Delete icon on a snippet
How to add display Snippet curly bracket to page
- Go to WebEd 9 site and log in as Administrator
- Select a page that you want to show the snippet and click Edit
- In the editor, click the Curly Bracket button to open the configuration curly brackets
- Click the Configure button in the popup
- Search for Snippet on the popup and click on the Snippet item in the resulting search
- The configuration popup will display. Setup configuration options on the left side and review the UI (User Interface) on the right side
- Category - select the category from the dropdown to filter the snippet
- Snippet - select the name of the snippet you want to display
- Enable Data Sheet - a checkbox option where the user must enter first their information or details before they can download any document on the page.
- Template Name - select a template name from the select dropdown.
- Click the Insert button to save. Click the OK button in the next popup to complete.
- Click Update And Close. Then you can see the snippet on the page
- Click on the snippet (has the document and enable data sheet from)