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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Do something when administrator clicks on Security tab


Go to End


4 Posts   1419 Views

Avatar
DeklinKelly

Community Member, 197 Posts

6 September 2011 at 6:52am

How can I do something every time an administrator clicks on the Security tab?

Avatar
swaiba

Forum Moderator, 1899 Posts

7 September 2011 at 1:12am

adds some unobtrusive jQuery I'd image, add the requirement into the init of the leftandmain object.

Avatar
DeklinKelly

Community Member, 197 Posts

7 September 2011 at 1:19am

No, I want to do something server-side.

For example log something everytime the security tab is clicked on:

file_put_contents('log.txt','hello');

Avatar
swaiba

Forum Moderator, 1899 Posts

7 September 2011 at 1:27am

no?
use an ajax request in jQuery then