Scripts

From Kooboo document
Jump to: navigation, search

JavaScript and JQuery


You may create or upload JavaScript files to development/Scripts folder. You can configure to load the Script files in this folder on page by page level. JQuery is included in the kooboo cms by default, you do not need to upload JQuery package.

The loading of JavaScript files is very similiar as loading of CSS files. Following below steps.

1. Create or upload JavaScript files to development/Scripts folder.

Script.png

Create: create a JavaScript on the server using text editor. Import: Import a zip file that contains JavaScript files.


2. In the layouts that you would like JavaScript files to be loaded, add the following code to it.

Script register.png

3. In the page level, check to load custom JavaScript or the system included JQuery. Please note that the JQuery stylesheet is loaded together with the theme feature.

Script load onpage.png

Your JavaScript files will not be loaded into the pages you choose.