JavaScript Templates

From unroole CMS wiki
Jump to: navigation, search


Unroole Site Builder Admin Panel - Javascript Duplicate.png

Copying a javascript from a channel to an account as a template.

Javascript templates are a good way to save commonly used javascript entries. There are two ways to create a new template. The first way is to generate a template from scratch just as you would a normal javascript entry. Alternatively any existing javascript entry or template can be duplicated as a new template. To copy a javascript to a template:

  1. Navigate to the Javascript under "Channel Content".
  2. Click the "Duplicate" button
  3. Select "Account (as a template)" as the area to duplicate into.
  4. Click "Submit" to create the template.

After a template is created you are able to make changes to it just as you would a normal javascript entry. For compatibility reasons any changes to templates will not be reflected in the javascripts created from them.

Unroole Site Builder Admin Panel - Javascript Templates.png

The javascript template index page. It works and functions much like the channel javascript entries.

Note that javascript templates are saved on the account level so that they are globally accessible to all channels under that account.