Hello. I’m working on a project and I’m running EE 2.2.2 ... just had a heck of a time getting javascript pulled into my template. I tried all the following methods:
src=”{path='inc/slides.behavior'}” (attempting to link to file in template group named /inc)
src=”/inc/slides.behavior” (attempting to link to file in template group named /inc)
src=”/js/slides.behavior.js” (created new directory at root for /js)
src=”/images/javascript/slides.behavior.js” (created new directory inside existing images directory)
The only one that worked was the last one. From my understanding the first one should have worked as well (well, really they all should have). Is there a bug in 2.2.2 with calls to javascript? What is the best practice for linking to js files? Ideally, I’d love for the first option to work (have the js in the default templates.
Any thoughts greatly appreciated. I am up and running using the last version but for future projects would love to get others thoughts.