Skip to content

Commit 645f172

Browse files
committed
Add {exp:member:role_groups} template tag
1 parent 0d6b8a6 commit 645f172

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

@@ -77,3 +77,29 @@ The `{exp:member:has_role}` tag allows you to display or hide its content depend
7777
member_id="147"
7878

7979
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.
80+
81+
## `{exp:member:role_groups}`
82+
83+
The `{exp:member:role_groups}` tag allows you to display role groups to which the member is assigned via his roles.
84+
85+
{exp:member:role_groups}
86+
<p>{role_group_name} (#{role_group_id})</p>
87+
{/exp:member:role_groups}
88+
89+
### Parameters
90+
91+
#### `member_id=`
92+
93+
member_id="147"
94+
95+
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.
96+
97+
### Variables
98+
99+
#### `{role_group_id}`
100+
101+
Role Group ID
102+
103+
#### `{role_group_name}`
104+
105+
Role Group name

0 commit comments

Comments
 (0)