Some more information related to the update:
was never in use.
There is also a change for
It was a single line replacement tag where you were able to use it as this to leave a comment here
This is no longer supported to be able to identify JavaScript files from other usage.
All ending with
results in <srcipt src="" /> in head.
Initialize the JavaScript libarry/framework which has selected in template by default. Try to put this at the topmost section of your template.
Load Plugin or More as described and based on current JavaScript framework/library. It will also render <srcipt src="" /> in head.
Code: Select all
<!-- JS: myplugin -->
<!-- JS: MORE:Fx/Fx.Elements,Fx/Fx.Accordion -->
And the best now is multi line JavaScript put as <script /> in head section. Be aware – every equal JavaScript section like used in looped Content Parts is rendered only once. To be detected as JavaScript it will need
;,
// and/or
/*.Just end your JavaScript line by
; is the safest way:
Code: Select all
<!-- JS:
// My Custom JS
alert('hey dude it works as expected');
-->
The same techniques are used for CSS, but just inline/external CSS. You can use {TEMPLATE} to get your current relative template path.
Code: Select all
<!-- CSS: body {background:yellow;} -->
<!-- CSS:
body {
background:yellow;
}
a {
text-decoration: none;
background: transparent url({TEMPLATE}img/link.png) no-repeat left center;
padding-left: 25px;
}
-->
<!-- CSS: {TEMPLATE}inc_css/my.css -->
<!-- CSS: my.css -->
Also for CSS: equal CSS used this way is rendered only once and also always put into the <head> section.