I tried looking for information on this, but haven’t had much luck finding it.
I am wonderingwhatthe best practices are for implementing java scripts
if I have a .js file, where is a good place to put it
where in the file should I included it
should I be using chunks ?
do I need to include it in the template ?
any help on this would be great...
thanks in advance
thanks ...
I’m assumng I should create a new template for the sites that will use javascript
You could have a different template for the pages needing JS.
Or you could create a TV named "javascript".
Give your template access to it.
Add [*javascript*] to the <head> of your template.
Then on the pages that need the JS add the link or actual JS it to the "javascript" TV.
That way you don’t need another template, that’s why their called Template Variables and why they’re so useful!