-
-
Notifications
You must be signed in to change notification settings - Fork 7
Javascript
Rainer Sulzbach edited this page May 25, 2021
·
7 revisions
Javascripts can be used to code client side scripts. They can be included in the template and are linked to a site.
Table cf_javascript
| attribute | description |
|---|---|
| name (unique) | Name of the javascript |
| content | Source of the javascript |
| checkoutby | Reference of the user that checked out the javascript |
Steps to define a javascript:
- define name of the javascript
- create the javascript (New button)
- select the created javascript in the dropdownlist
- check it out (Check out button)
- write the stylesheet
- save the javascript (Save button)
- check it in (Check in button)
- commit the changes - new version is generated (Commit button)
When a javascript is commited to the system, a version is created in the table cf_javascriptversion (content is compressed)
A javascript is linked to a site using the js directive.
It is also possible to call a Javascript directly with *.js where * is the name of the javascript. This makes it possible to include several javascripts from the backend in other templates.