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.

Customising the CMS /

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

Javascript in the CMS Backend


Go to End


1515 Views

Avatar
dataforlife

Community Member, 10 Posts

8 October 2011 at 2:05am

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.