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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

not having prototype.js in Template


Go to End


3 Posts   4006 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?