2018.2

Table Of Contents
l Bootstrap on MaxCDN
l Multiple frameworks on Google Developers
Using JavaScript files in a template
Including a JavaScript file in a Web context
To link a JavaScript file to the Web context, or to a certain Web section or COTG template:
1.
On the Resources pane, expand the Contexts folder, and then either right-click the Web
context, or expand the Web context and right-click a Web section.
2.
Click Includes.
3.
From the File types dropdown, select JavaScripts.
4. The available JavaScript files are listed at the left. Use the arrow buttons to move the
JavaScript files that should be included to the right-hand list. Using the Up and Down
buttons you can change the order of the files, too.
5.
Click OK.
Note
JavaScript files that are linked to (i.e. included in) a section show a chain icon in the Resources pane
(see "Resources pane" on page872).
Note
Any JavaScript files included in a section run after the scripts in the Scripts pane.
Using JavaScript in other contexts
Email clients do not support JavaScript. Therefore, Email contexts cannot include JavaScript
resources.
When a JavaScript file is included in a Print section, the Designer itself acts as the browser.
When generating Print output, it runs the JavaScript after generating the main page flow
contents and the pagination. So it is possible to change the Print output by a JavaScript; for
example, to add a barcode that includes the page number to each document. A warning is
Page 486