Editing Templates in CMS

Templates Tutorial : Editing Templates in CMS

Overview

Developers can edit existing templates by entering text in a web browser. The datasource files (.tcl files) associated with the templates (.adp files) should be maintained locally in the filesystem and ideally placed under version control. Currently, there is no way to edit datasources (.tcl files) using CMS although CMS can ascertain important information from the datasource files.

Step by Step

  1. Browse to the folder that contains the template to be edited.

  2. Click the Edit icon to edit this template by typing text into a web browser.

    Alternatively, clicking the name of the template and then clicking the "General" tab will bring up a list of options for that template (see Figure 1). Click the "Edit" link to edit this template in a web browser.


    Figure 1. Template Options.

  3. The page to edit a template (see Figure 2) contains a textarea, an Output Type drop-down list, and the option of editing the current revision or adding a new version entirely. The contents and output type of the template's latest revision (if it exists) will automatically be entered into the form for editing.

    Click "Save" to save changes to the template and "Cancel" to return to previous page without saving any changes.

    Edit a Template
    Figure 2. Edit Template Page.

  4. If a new revision was specified, clicking the "Save" button will result in a new revision being added to the template. Otherwise, clicking the "Save" button will result in the latest revision being modified.