Description: Used to obtain user group details data
How to use:{% userGroupDetail 变量名称 with name="字段名称" id="1" %}
The variable name is not necessary. After setting the variable name, you can call it through the variable name in the future. Without setting the variable name, the result will be output directly.
The supported parameters of userGroupDetail are:
- User group ID
id
.id
Level and id are selected to specify which user group ID to get the details. - User group level
level
.level
Level and id are selected to specify which user group level to get.
The fields available for the name parameter are:
- User group ID
Id
- User group name
Title
- User Group Introduction
Description
- User group level
Level
- User group purchase price
Price
- Discounted Price
FavorablePrice
- User group settings
Setting
The user group is set as a key-value pair.
User group IDId
Tag usage:{% userGroupDetail with name="Id" %}
{# 默认用法,自动获取当前当前页面用户组ID #}
<div>UserID:{% userGroupDetail with name="Id" %}</div>
{# 获取指定用户组ID #}
<div>UserID:{% userGroupDetail with name="Id" id="1" %}</div>
{# 自定义字段名称 #}
<div>UserID:{% userGroupDetail getId with name="Id" %}{{getId}}</div>
<div>UserID:{% userGroupDetail getId with name="Id" id="1" %}{{getId}}</div>
User group nameTitle
Tag usage:{% userGroupDetail with name="Title" %}
{# 默认用法,自动获取当前当前页面用户组ID #}
<div>用户组名称:{% userGroupDetail with name="Title" %}</div>
{# 获取指定Tagid的Tag字段 #}
<div>用户组名称:{% userGroupDetail with name="Title" id="1" %}</div>
{# 自定义字段名称 #}
<div>用户组名称:{% userGroupDetail groupName with name="Title" %}{{groupName}}</div>
<div>用户组名称:{% userGroupDetail groupName with name="Title" id="1" %}{{groupName}}</div>
User Group IntroductionDescription
Tag usage:{% userGroupDetail with name="Description" %}
{# 默认用法,自动获取当前当前页面用户组ID #}
<div>用户组介绍:{% userGroupDetail with name="Description" %}</div>
{# 获取指定Tagid的Tag字段 #}
<div>用户组介绍:{% userGroupDetail with name="Description" id="1" %}</div>
{# 自定义字段名称 #}
<div>用户组介绍:{% userGroupDetail groupDescription with name="Description" %}{{groupDescription}}</div>
<div>用户组介绍:{% userGroupDetail groupDescription with name="Description" id="1" %}{{groupDescription}}</div>