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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Customising the CMS /

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

Javascript in the CMS Backend


Go to End


1155 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.