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

Extending Adding/Removing Members from Security Groups


Go to End


3 Posts   1872 Views

Avatar
dizzystuff

Community Member, 94 Posts

15 March 2010 at 4:31am

Hey All

I'm really struggling to figure out how to extend Security Admin in the way I need too. In short, when I add or remove a Member from a Security Group, I need to make an update to that Member's record (to basically the equivalent of a lastupdateddate field).

It's late and I've been trying to piece together how to do this for a while.. I'd really appreciate some guidance.

Thanks
Dizzy

Avatar
Ingo

Forum Moderator, 801 Posts

13 April 2010 at 8:35pm

There's no direct way to do the equivalent of "onAfterWrite()" in a manymany relationship (through ComponentSet). You'll have to customize MemberTableField for this.

Avatar
dizzystuff

Community Member, 94 Posts

14 April 2010 at 4:48pm

Thanks, again, for getting back to me in these posts. Looks like I'll be having a MemberTableField night :)