?
avatar Spudley
Spudley
21 Apr 2017

Joomla gives awesome ability to write plugins for user management.

With a user plugin, I can write code to intercept both before and after users are saved, when the log in or when they're deleted. I can also intercept the construction of the user profile form and modify it; I can add whole extra tabs of data to the form.

But Usergroups... not so much. There isn't a usergroup plugin type, and aren't any events I can intercept for saving groups or adding fields to the form, or anything else.

Please can we add a plugin type and set of event triggers for usergroups.

Thank you.

avatar Spudley Spudley - open - 21 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - change - 21 Apr 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 21 Apr 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 21 Apr 2017
Priority Medium Low
avatar zero-24 zero-24 - change - 21 Apr 2017
Labels Added: ?
avatar zero-24 zero-24 - labeled - 21 Apr 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 21 Apr 2017
Category com_users Feature Request
avatar zero-24 zero-24 - edited - 21 Apr 2017
avatar zero-24 zero-24 - change - 21 Apr 2017
Labels Removed: ?
avatar zero-24 zero-24 - unlabeled - 21 Apr 2017
avatar zero-24 zero-24 - change - 21 Apr 2017
Title
Proposal: Event triggers for usergroups to match those for users
RFC: Event triggers for usergroups to match those for users
avatar zero-24 zero-24 - edited - 21 Apr 2017
avatar Spudley
Spudley - comment - 21 Apr 2017

@zero-24 embarrassingly, no; I'd completely missed those. Not sure how. (I don't recall seeing them documented anywhere though).

So those would be part of a user plugin, then? That's convenient.

However, I was also hoping to be able to add fields to the usergroup form, as I can for users via onContentPrepareForm. Is there an event like that for groups?

avatar zero-24
zero-24 - comment - 21 Apr 2017

also onContentPrepareForm is triggert.

The context is
$context = $form->getName();
=>
com_users.group

avatar Spudley
Spudley - comment - 21 Apr 2017

Ah great. thank you for that. I guess the ticket can be closed then. :)

I'll try writing my plugin idea when I get a bit of spare time.

avatar Spudley Spudley - change - 21 Apr 2017
Title
RFC: Event triggers for usergroups to match those for users
Proposal: Event triggers for usergroups to match those for users
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-04-21 19:34:46
Closed_By Spudley
avatar Spudley Spudley - close - 21 Apr 2017
avatar zero-24
zero-24 - comment - 21 Apr 2017

?

avatar Spudley
Spudley - comment - 12 May 2017

@zero-24 - so I've been turns out that modifying the user group admin form is much harder than the user profile form. I don't want to clutter up this thread, but I've asked a question on the Joomla stackexchange site, so perhaps you could join the discussion there? I feel like you might be able to give some helpful input. :)

Thanks.

Add a Comment

Login with GitHub to post a comment