Code

Used to add custom code to a page.

How to use

  • Add Code, this is output in the main body of the page
  • Optionally add Notes, this is for internal use only and it not published

For more advanced options use Code Advanced content type.

Specific Use Cases

There are specific sections where the Code only content type has been used to pull code into areas of the page layout:

  • Site Assets » Common Header » Search Modal - HTML for the Search Box which is pulled into the header of every page
  • Site Assets » Code - Head - Add code to the <head> section of every page e.g., custom JavaScript
  • Site Assets » Code - Body Start - Add code after the opening <body> tag on every page e.g., tracking or analytics code
  • Site Assets » Code - Body End - Add code before the closing </body> tag on every page e.g., tracking or analytics code

Content Type Details

ID: 43
Name: Code
Description: Template for adding code to a section
Minimum user level: Administrator

Content Type Elements Details

NameDescriptionSizeTypeRequired
NameThe Name element80 CharactersPlain TextYes
CodeAdd code to output in the main body of the page99999999 CharactersPlain TextYes
NotesInternal notes and information. Not published.99999999 CharactersHTMLNo