Home

Disable Default JavaScript Behaviours

By default SilverStripe uses bulky and sometimes unwanted JavaScript libraries to handle form validation and AJAX page commenting features. Often you want to disable this behaviour so you can integrate your own JavaScript code. This is easily achieved with the following two lines in you site configuration file:

mysite/_config.php

Now you are free to add the behaviours you want to your view (templates) without the hassle of unpredictable SilverStripe JavaScript includes.

 

About the Author

Name: Hamish Campbell

Website: http://polemic.net.nz/

Hamish is a web developer for Opus International Consultants in New Zealand. He creates tools for managing data online, with a particular interest in geographical information systems. He is also an active contributor to the SilverStripe open source project. You can find Hamish on twitter (@polemic) or catch him at his ever-neglected web home http://polemic.net.nz/.

Comments (0)

No one has commented on this page yet.

RSS feed for comments on this page RSS feed for all comments

Post your comment