I'm recently started with making an own component in Joomla (3.x). And now i'm trying to automatically append subgroups to a new usergroup.
What i want is the following:
--> When i create a new usergroup A, i want to automatically add subgroup B, subgroup C and subgroup D to usergroup A. (something like a OnAfterSave
?)
In /libraries/joomla/table/usergroup.php
i found a function that rebuild the lft
& rgt
values for me. Maybe i can do something with that?
Or should i just build the query by myself?
And I don't know where to build the selfmade onAfterSave
function, which makes the subgroups...
I hope anybody can help me with this problem? Thanks in advance!