Jump to:

5539 Posts in 1738 Topics by 1224 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Disabling prototype for page comments

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

Page: 1
Go to End
Author Topic: 2139 Views
  • Anatol
    126 Posts

    Disabling prototype for page comments Link to this post


    just in case this might help anyone. I'm building a site that uses the Mootools framework (in the frontend). It all works well, but when I allow comments on a page Silverstripe adds javascript validation with the Prototype JS framework. This creates a conflict with Mootools. You may run into similar problems with other frameworks such as jQuery.

    To get rid of Prototype you need to disable both AJAX commenting (in _config.php):


    and remove the form validation (in e.g. Page.php):

    class Page_Controller extends ContentController {
       public function init() {


  • Andrew Houle
    Community Member
    132 Posts

    Re: Disabling prototype for page comments Link to this post

    Thanks for taking the time to post this! I was running into the same issues (predictably so) with the jQuery library.


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.