Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » not having prototype.js in Template

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

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

Page: 1
Go to End
Author Topic: 3100 Views
  • lubzee
    Avatar
    Community Member
    15 Posts

    not having prototype.js in Template Link to this post

    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?

  • ajshort
    Avatar
    Community Member
    244 Posts

    Re: not having prototype.js in Template Link to this post

    To block prototype.js from being included you can put

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

    in your Page_Controller's init function

  • lubzee
    Avatar
    Community Member
    15 Posts

    Re: not having prototype.js in Template Link to this post

    Thanks for the reply!

    Could you explain the reasoning of including it by default?

    3100 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.