Code Only
Add custom code to a page, used by Administrators only.
Content Type Details
- ID: 315
- Name: Code Only
- Minimum user level: Administrator
- Use with page layouts: Homepage, Full Width, Page with Sidebar - in Main Body, Microsite, PPC Campaign - in Main Body, PPC Campaign - in Full Width
For more advanced options use the Code Only Advanced content type.
Content Type Elements Details
Name | Description | Size | Type | Required | Conditionally Shown |
---|---|---|---|---|---|
Name | The Name element | 80 Characters | Plain Text | Yes | No |
Code | Add code, this is output where added in the body of the page. Supports Handlebars mark up. | 99999999 Characters | Plain Text | Yes | No |
Notes | Internal notes and information. Not published. See TinyMCE content options. | 999999 Characters | HTML | No | No |
Examples
Specific Use Cases
There are specific use cases where the Code Only content type is used in the Dallas College build:
- Site Assets » Main Footer » Student Help - to add code snippet for Student Help band in the Main Footer which contains phone and text numbers and social media links
- Site Assets » Main Footer » Mobile Footer - to add code snippet for the mobile footer which includes CTA buttons only displayed on smaller screens (Apply, Maps, Contact)
- Dallas College » Google Sitemap - to add code for the Google Sitemap
- Site Assets » Code - Head - Code Only content in this section is output in the
<head>
section on every page e.g., Google Tag Manager JS - Site Assets » Code - Body Start - Code Only content in this section is output directly after the opening
<body>
tag on every page e.g., Google Tag Manager no-JS version - Site Assets » Code - Body End - Code Only content in this section is output directly before the closing
</body>
tag on every page e.g., custom tracking scripts
Custom Code Added to a Page
This code is added using the Code only content type.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur placerat ante eu leo lacinia scelerisque. Aliquam dapibus elementum tortor non venenatis.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur placerat ante eu leo lacinia scelerisque. Aliquam dapibus elementum tortor non venenatis.
