3447 Posts in 1032 Topics by 872 members
|Go to End|
11 October 2012 at 9:56am
However if I add it to the head section of the Page.ss template, it works fine.
I also have the following in my Page.ss template:
On checking the source code of the rendered pages, I see that the slideshow works when fadeslideshow.js is positioned after the jquery.min.js, but fails when it is positioned before it.
So, how can I force Silverstripe to position the script in HomePage.ss before the script in Page.ss?
4 November 2012 at 3:11am
Except when you're using the Layout folder, I don't think .ss-files are inheriting when they are on the same level.
Same for modules, the'll just be overwriting (I think).
Then I don't really get your question. So you want to put the script of HomePage.ss before the one of Page.ss,
although they don't inherit anything, at least not implicit? So unless you're using the Layout folder, I don't think this really matters.
You should just look at one .ss at a time and make sure the jquery is before the other scripts that are using it.
Did this help you in any possible way? Otherwise you should describe the problem with some more details cause I don't really get it .
|Go to Top|