Skip to content

Commit f74a751

Browse files
authored
Merge pull request #768 from ExpressionEngine/feature/7.x/member-role-groups-tag
Add {exp:member:role_groups} template tag
2 parents e70c5e6 + 6d846ed commit f74a751

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

docs/member/member-roles-tags.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
## `{exp:member:roles}`
1515

16-
The `{exp:member:roles}` tag allows you to display all groups that the member belongs to.
16+
The `{exp:member:roles}` tag allows you to display all roles that the member belongs to.
1717

1818
{exp:member:roles}
1919
<p>{name} ({role_id}{if is_primary_role}, Primary Role{/if})</p>
@@ -25,7 +25,7 @@ The `{exp:member:roles}` tag allows you to display all groups that the member be
2525

2626
member_id="147"
2727

28-
Specifies a particular member's information to display. By default (if you do not include the member_id parameter, the tag will simply display information pertaining to the currently logged-in user.
28+
Specifies a particular member's information to display. By default (if you do not include the `member_id`` parameter), the tag will simply display information pertaining to the currently logged-in user.
2929

3030
### Variables
3131

@@ -82,3 +82,29 @@ It is possible to pass multiple roles by separating the ids with a `|` character
8282
member_id="147"
8383

8484
Specifies a particular member's information to display. By default (if you do not include the member_id parameter, the tag will simply display information pertaining to the currently logged-in user.
85+
86+
## `{exp:member:role_groups}`
87+
88+
The `{exp:member:role_groups}` tag allows you to display the role groups a member belongs to. Please note, while every member is in a Role not every member is in a role group.
89+
90+
{exp:member:role_groups}
91+
<p>{role_group_name} (#{role_group_id})</p>
92+
{/exp:member:role_groups}
93+
94+
### Parameters
95+
96+
#### `member_id=`
97+
98+
member_id="147"
99+
100+
Specifies a particular member's information to display. By default (if you do not include the `member_id`` parameter), the tag will display information pertaining to the currently logged-in user.
101+
102+
### Variables
103+
104+
#### `{role_group_id}`
105+
106+
Role Group ID
107+
108+
#### `{role_group_name}`
109+
110+
Role Group name

0 commit comments

Comments
 (0)