Modern Campus Catalog Emblem Modern Campus CMS Emblem Modern Campus Curriculum Emblem Modern Campus Involve Emblem Modern Campus Lifelong Learning Extended Education Emblem Modern Campus Message Emblem Modern Campus Navigate Emblem Modern Campus Schedule Emblem Modern Campus Virtual Tours & Maps Emblem Modern Campus Lifelong Learning Workforce and Community Emblem Site Menu Open Site Menu Close

Source Code Assets

Use source code assets to enter source code or scripts such as JavaScript or PHP into a page. Because Modern Campus CMS uses XML/XSL to render pages, source code assets must have valid XML syntax to avoid causing errors when placed on pages.

Create NewLink to this section

  1. Navigate to Content > Assets.
  2. Click +New.
  3. Click Source Code.
  4. Type an asset name.
    • Description and tags are optional, but tags can make it easier to find when searching for an asset to place on a page.
    • Select "Lock to site" checkbox to prevent use on different sites.
  5. Set access settings for the asset if desired.
  6. Write the asset content in the mini-source code editor.
  7. Click Create.

Your asset is now available for use on pages, but must be published before it appears on any live web pages.

UseLink to this section

Create a source code asset using any programming language as long as it is valid XML, or the page won't render correctly.

Note: Boolean attributes, or attributes that don't have a value assigned, are not valid XML. For these attribute types, add the attribute name as the value, for example, <script async></script> should be written as <script async="async"></script>. All "&" must be encoded as well.

A common use for source code assets is inserting a news or events feed into a page.

EditLink to this section

Edit an existing source code asset, as follows:

  1. Navigate toContent Assets.
  2. Click on the name of the asset you want to edit.
  3. Check out the asset.
  4. Click Editin the page actions toolbar.
  5. Edit the source code.
  6. Click Save.
  7. Publish the asset for your changes to appear on the live website.

By continuing to use this site, you agree to the storing of first- and third-party cookies on your device to enhance site navigation; analyze site, product, and service usage; and assist in our marketing and promotional efforts. Cookie Policy