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.


Our old forums are still available as a read-only archive.

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

how nice does SilverStripe play with jQuery?

Go to End

12 Posts   7656 Views


7 August 2008 at 7:48am Community Member, 6 Posts

hey all,

I pretty much have the entire front-end f a website i'm working on ready using standard HTML and plenty of custom jQuery and i'm looking for a solution so i won't have to reinvent the wheel with my back-end and admin features.

I'm currently playing around with the latest build but I was wondering how nice does SilverStripe play with jQuery?

More exactly, I basically want to create some predefined sections and customize their look and feel with my own HTML, CSS and JS and then use SilverStripe mainly to act as my back-end... is this feasible?



7 August 2008 at 11:04am SilverStripe Developer, 65 Posts

Hi Alex,

If you are just using jQuery for the display of the front-end of the website, then there is no reason why it shouldn't work with SilverStripe. Have fun!



7 August 2008 at 11:27am Community Member, 6 Posts

thx for your reply Josh!

after taking a more thorough look at SS i realized that as good as it seems, the fact that it uses scripatculous + proto just goes against the whole point of using jQuery...

it would be pretty hectic too with all 3 of those libs loaded... i find that with just jQuery and some plugins (namely UI) you can get the same functionality as scriptaculous+prototype with much smaller code... but anyway thats not the point of this thread :)


7 August 2008 at 1:00pm Forum Moderator, 5511 Posts

Well for our own client sites we have started to move towards using jQuery as the CMS is being rewritten to use jQuery rather the prototype.

If you do use jQuery at the moment things like form vaildation will not work, AJAX page comments etc, you just have to use Requirements::block() for the prototype files. Over the next releases starting with 2.3 the components of the system will be rewritten from prototype into jQuery


7 August 2008 at 1:33pm Community Member, 6 Posts

nice! that's excellent news! :)


26 September 2008 at 7:45pm Community Member, 63 Posts

Hi, like the idea too

for those who can't wait, I have posted a hack of the gallery module that uses jquery lightbox


26 September 2008 at 11:29pm 121 Posts

I assume you aware of JQuery's noconflict mode? I'm pretty sure I remember using this to prevent it clashing with prototype in the past.


27 September 2008 at 1:49am Community Member, 6 Posts

yeah im aware of noconflict but in an ideal world there wouldn't be the overhead of loading prototype to begin with! ;) (especially if you dont plan on using it at all!)

Go to Top