JavaScript Templates
From unroole CMS wiki
For more information, see JavaScripts.
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:
- Navigate to the Javascript under "Channel Content".
- Click the "Duplicate" button
- Select "Account (as a template)" as the area to duplicate into.
- 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.
Note that javascript templates are saved on the account level so that they are globally accessible to all channels under that account.