This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
adminsnippets [2019/03/13 00:40] stephan |
adminsnippets [2019/03/13 01:03] stephan |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | === CB Split - Admin Snippets === | + | === CB Split - Admin - Content > Snippets === |
Recurring html or code elements can easily be included into pages or layouts using snippets. Originally added as a place to put java script and other code that would typically break the template engine used by the pages module, but useful also in placing common recurring code in one place making it easy to edit across all pages easily. | Recurring html or code elements can easily be included into pages or layouts using snippets. Originally added as a place to put java script and other code that would typically break the template engine used by the pages module, but useful also in placing common recurring code in one place making it easy to edit across all pages easily. | ||
Line 17: | Line 17: | ||
{{:: | {{:: | ||
+ | |||
+ | **Auto-Injection** is basically telling a snippet to load on certain pages, without cluttering up that page with the snippet code. Auto-injected snippets will load as though they were the last line on the " | ||
+ | |||
+ | {{:: |