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.

Archive /

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

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

not having prototype.js in Template


Reply


3 Posts   3132 Views

Avatar
lubzee

Community Member, 15 Posts

10 October 2008 at 9:41pm

Hi

I am using the latest checkout of silverstripe, I've noticed that prototype.js is included automatically into my templates. It is currently interfering with some of my Jquery stuff and it is SO big.. I want to disable it?

How would I go about doing this?

Avatar
ajshort

Community Member, 244 Posts

10 October 2008 at 11:36pm

To block prototype.js from being included you can put

Requirements::block('jsparty/prototype.js');

in your Page_Controller's init function

Avatar
lubzee

Community Member, 15 Posts

11 October 2008 at 2:38am

Thanks for the reply!

Could you explain the reasoning of including it by default?