Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 28 additions & 2 deletions docs/member/member-roles-tags.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

## `{exp:member:roles}`

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

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

member_id="147"

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.
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.

### Variables

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

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.

## `{exp:member:role_groups}`

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.

{exp:member:role_groups}
<p>{role_group_name} (#{role_group_id})</p>
{/exp:member:role_groups}

### Parameters

#### `member_id=`

member_id="147"

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.

### Variables

#### `{role_group_id}`

Role Group ID

#### `{role_group_name}`

Role Group name