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:

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   995 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