Skip to Main Content Open Alternative Formats of This Page

eConnect, Self-Service and Colleague​​ will be unavailable on Sunday, Sept. 21, from 1 a.m. until 2 p.m. for maintenance​. We appreciate your patience.​​

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

NameDescriptionSizeTypeRequiredConditionally Shown
NameThe Name element80 CharactersPlain TextYesNo
CodeAdd code, this is output where added in the body of the page. Supports Handlebars mark up.99999999 CharactersPlain TextYesNo
NotesInternal notes and information. Not published. See TinyMCE content options.999999 CharactersHTMLNoNo

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.

Police
Updated May 12, 2025