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   3130 Views

Avatar
lubzee

10 October 2008 at 9:41pm Community Member, 15 Posts

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

10 October 2008 at 11:36pm Community Member, 244 Posts

To block prototype.js from being included you can put

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

in your Page_Controller's init function

Avatar
lubzee

11 October 2008 at 2:38am Community Member, 15 Posts

Thanks for the reply!

Could you explain the reasoning of including it by default?