Create new groups

Discussion and education for beginner / novice programmers interested in embarking on the development process to take advantage of the extensible nature of the Joomla! CMS.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Forum rules
Post Reply
User avatar
timgerr
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Tue Sep 19, 2006 4:22 am
Location: Michigan

Create new groups

Post by timgerr » Fri Jan 25, 2008 6:50 am

So I have been wanting to create new groups within Joomla so I can create group access in FireBoard.  So when a user is created you can add them to the different groups,  So I went poking around in the table jos_core_acl_aro_groups and found that the developers are using Left and Right Keys for nested groups levels.  This is interesting because I have been wanting to learn how to do this.  So playing around I added my own group, TestGrp (id = 26).  So Thinking that I would be able to assign a new user to that group I go to the user manager to add the user to the newly created group.  The problem is I was unable to add the user because the groups didn't show in the list. OK I am missing something.  I then went to the user menu to create a new item so I can see what group  I can add that item too, Bang... I see my newly created group.  I was able to add the new menu item to the new TestGrp group. 

So I am missing how the left and right keys are created. 

What do I have to do to have my group show up in the users access list?

Is there any documentation on how the left and right keys work and are created.

Here is what my  jos_core_acl_aro_groups table looks like.

Code: Select all

+----+-----------+---------------------+-----+-----+---------------------+
| id | parent_id | name                | lft | rgt | value               |
+----+-----------+---------------------+-----+-----+---------------------+
| 17 |         0 | ROOT                |   1 |  22 | ROOT                |
| 28 |        17 | USERS               |   2 |  21 | USERS               |
| 29 |        28 | Public Frontend     |   3 |  12 | Public Frontend     |
| 18 |        29 | Registered          |   4 |  11 | Registered          |
| 19 |        18 | Author              |   5 |  10 | Author              |
| 20 |        19 | Editor              |   6 |   9 | Editor              |
| 21 |        20 | Publisher           |   7 |   8 | Publisher           |
| 30 |        28 | Public Backend      |  13 |  20 | Public Backend      |
| 23 |        30 | Manager             |  14 |  19 | Manager             |
| 24 |        23 | Administrator       |  15 |  18 | Administrator       |
| 25 |        24 | Super Administrator |  16 |  17 | Super Administrator |
| 26 |        25 | TestGrp             | 100 | 200 | Testing Group       |
+----+-----------+---------------------+-----+-----+---------------------+


Thanks for the help.
timgerr
-How important does a person have to be before they are considered assassinated instead of just murdered?
-He's not carnival personnelle!!!

Post Reply