Changed template variable stylesheetDir to themeStylesheetDir for clarity. Added examples of how to add a script from a body template. Pass themedir to ScriptList object.
This commit is contained in:
parent
0d656c8370
commit
fc15fd5d20
1 changed files with 11 additions and 3 deletions
|
@ -38,13 +38,21 @@
|
|||
</body>
|
||||
</html>
|
||||
|
||||
<#-- Three ways to add a stylesheet:
|
||||
<#--
|
||||
Three ways to add a stylesheet:
|
||||
|
||||
A. In theme directory:
|
||||
${stylesheets.addFromTheme("/sample.css");
|
||||
${stylesheets.add(stylesheetDir + "/sample.css")}
|
||||
${stylesheets.add(themeStylesheetDir + "/sample.css")}
|
||||
|
||||
B. Any location
|
||||
${stylesheets.add("/edit/forms/css/sample.css"}
|
||||
${stylesheets.add("/edit/forms/css/sample.css)"}
|
||||
|
||||
To add a script:
|
||||
|
||||
A. In theme directory:
|
||||
${scripts.addFromTheme("/sample.js");
|
||||
|
||||
B. Any location
|
||||
${scripts("/edit/forms/js/sample.js)"}
|
||||
-->
|
Loading…
Add table
Reference in a new issue