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.
Labels |
Added:
?
|
Priority | Medium | ⇒ | Low |
Labels |
Added:
?
|
Category | ⇒ | com_users Feature Request |
Labels |
Removed:
?
|
Title |
|
@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?
also onContentPrepareForm is triggert.
The context is
$context = $form->getName();
=>
com_users.group
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.
Title |
|
||||||
Status | New | ⇒ | Closed | ||||
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-04-21 19:34:46 | ||||
Closed_By | ⇒ | Spudley |
@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.
@Spudley there are plugin events:
https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_users/models/group.php#L31-L34
Did you tryerd that?