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.

Customising the CMS

Javascript in the CMS Backend


Reply

633 Views

Avatar
dataforlife

8 October 2011 at 2:05am Community Member, 10 Posts

Hi there,

how can i put some javascript into the cms backend?

Simple Examle:
i want to use jQuery in the CMS Backend. For Example: use jQuery's .load() function in the pagetype page in a special tab. How can i do this?

i have found this:
http://doc.silverstripe.org/sapphire/en/topics/javascript#javascript-cms
and this:
http://doc.silverstripe.org/sapphire/en/reference/leftandmain#onload-javascript

But where should i place this code

Behaviour.register({........... }) ??

Thanks a lot for your help. Im absolute new to SilverStripe.

greetz.