JavaScript and CSS Shortcuts
There are a number of LCUI tags and named templates that load sets of JavaScript or CSS files, or create the basic starter JavaScript code to get a page going.
When using the JavaScript shortcut tags and templates, they should be called in the order shown in the following table. First, all CSS files should be loaded, then the JQuery scripts, then base Legacy Content Delivery scripts, then additional JavaScript files and if a initialization function needs to be called, add it last.
| Tag | Description | Parameters |
|---|---|---|
CSS Reference |
Loads a CSS file, generating a dynamic URL, including a skin parameter if available. Produces a
For example
could generate
|
|
JQuery Scripts |
Creates a set of JavaScript tags that load all the JQuery modules using dynamic URLs. Creates script tags to load: The | |
Tridion Docs Base Scripts |
Creates a set of JavaScript tags that load all the Legacy Content Delivery core modules using dynamic URLs. Creates script tags to load: The | |
JavaScript Reference |
Loads a JavaScript file, generating a dynamic URL, including a skin parameter if available. Produces a
For example
could generate
|
|
Initialization Call |
Creates a set of JavaScript commands which kick off the starter JavaScript which causes all the XML Configuration files to go into action, loading the entire interface. Only add this to a page after The |