CMS Support - Javascript Files

The My Market Toolkit CMS allows you to manage your javascript files in one place. Each website can have as many javascript files as needed.

Creating a Javascript File

To create a javascript file:

  1. Click on "Manage Javascript Files".
  2. Click on "Create Javascript Page".
  3. Give the javascript file a meaningful title. The URL will be automatically generated unless you specify one.
  4. Change the Status to "Public" when ready to use it.
  5. Compose your javascript in the Content area or paste it from some other source.
  6. Click "Submit".

Applying a Javascript File to a Template

To apply a javascript file to a Template:

  1. Click on "Javascript Files".
  2. Click the "Edit" (pencil) icon next to the stylesheet you wish to apply.
  3. Copy the Template Code - it will look something like this: [kmod type="js" name="script-name"]
  4. Paste it into the template between the head tags where you would normall link to your javascript files. The appropriate tags will be generated.