Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Javascript doesn't show up. Why?


6 Posts   2080 Views


Community Member, 39 Posts

7 November 2009 at 12:54pm

This is what I'm writing in Page.php Controller:

public function init() {

But my page doesn't show my scripts. What is wrong?
It doesn't work in FF and it doen't in IE... I tried to put this line "ContentNegotiator::disable();" in _config.php - doesn't work eather.


Forum Moderator, 5513 Posts

7 November 2009 at 1:14pm


Should be


Note the lower case 'javascript' and mysite usually shouldn't have a / in front of it


Community Member, 39 Posts

10 November 2009 at 7:22am

Thank you very much for the help!


Community Member, 3 Posts

15 June 2010 at 2:04am

Edited: 16/06/2010 2:12am

Hi, Im new to SilverStripe and have just run thru the first tutorials, when I tryed to implement the image gallery everything worked fine but thats when I discovered that the javascript wont show in the head section. Can I have messed up some other file? dont have a clue about this. ive tryed different paths, nothing seems to get the javascript to show up in the <head> section. The css loads but not the javascript im really clueles?!

somehow I got the gallery javascript working but when I try to add new javascript to HomePage I cant????


Community Member, 21 Posts

3 October 2013 at 6:38am

Hi Will,

I am doing the same as you mentioned but javascript still not working. I am doing it with


Guide me where i am wrong

Thanks in advance


Community Member, 175 Posts

3 October 2013 at 9:37pm


Is the path definitely correct? It's not 'themes/radhika/js...'?

Also, there's a heck of a lot of JavaScript there, your page size is going to be huge. You can use one script for more than thing, for example you can use carouFredSel to do everything that flexslider.js/carousel.js can do. It also appears you're trying to include jQuery twice (the first two).