Publish Templates in CMS

Templates Tutorial : Publish Templates in CMS

Overview

Developers can publish a template (.adp file) created in CMS to the filesystem. 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 published.

  2. Click the name of the template to bring up a page that displays the template's version history (see Figure 1). The History page contains a listing of revisions associated with the current template ordered from most recent to least recent. The last revision to be published (if any) is highlighted in yellow. Note that if changes have been made to the last published revision, then that version must be re-published in order for those changes to be written to the filesystem. This is why it is always a good idea to save changes to the template as a new revision.

    Click the Publish Template icon to publish the template (.adp file) to the Template Root within the filesystem. Additionally, a version of the template can be re-published by clicking on the Publish Template icon again.

    Template Version History
    Figure 1. Template Version History.