This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
adminsnippets [2019/03/13 02:14] stephan |
adminsnippets [2021/03/03 15:48] (current) stephan |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | === CB Split - Admin - Content > 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 10: | Line 10: | ||
* Quiz Code | * Quiz Code | ||
- | {{::snippet-main.png?800|}} | + | ;#; |
+ | {{youtube> | ||
+ | ;#; | ||
+ | |||
+ | |||
+ | ;#; | ||
+ | {{::snippet_1.png?direct&800|}} | ||
+ | ;#; | ||
+ | |||
**Snippets can have Logical arguments** based on post variables being present. This could be useful if you wanted to show content on a page to a specific group of people/ | **Snippets can have Logical arguments** based on post variables being present. This could be useful if you wanted to show content on a page to a specific group of people/ | ||
- | **Marketing Pixels/ | + | **Logic** provided to you by advertisers to be placed onto your site have the undesireable side effect of telling your advertiser EVERYTHING about your traffic especially when placed site wide, using snippet logic you can load your advertisers pixel ONLY when his incoming HOP ID is present. Cool right? |
+ | |||
+ | ;#; | ||
+ | {{:: | ||
+ | ;#; | ||
- | {{:: | ||
- | **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 " | + | **Insertions** are 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 " |
- | {{::snippet-autoinject.png?800|}} | + | ;#; |
+ | {{::snippet_insertions.png?direct&800|}} | ||
+ | ;#; |