Difference between revisions of "JavaScript Templates"
From unroole CMS wiki
(Created page with "<noinclude> {{for|more information|JavaScripts}} </noinclude> {{Css Image Crop |Image = Unroole Site Builder Admin Panel - Javascript Duplicate.png |bSize = 300px |cWid...") |
(No difference)
|
Latest revision as of 08:58, 5 July 2012
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.