Permission 1.0 Member List
The approval form allows you to list the members who belong to a given permission point.
Parameters
There are several parameters available for the approval_form tag.
approved =
approved = "yes|no"
Use the 'approved' parameter to filter a list of members by those who have been approved or not for a given permission point.
limit =
limit = "10"
Use the 'limit' parameter to limit the number of members shown on the page.
name =
name = "permission_point_name"
Use the 'name' parameter to indicate which permission point to pul members for.
template =
template = "template_group/template"
The 'template' parameter helps you take advantage of a new method being used in Solspace modules. When you indicate a template, the module will use that template as the formatting model for error messages issued during the request action. This gives you greater control of your user interface and makes it easier to build AJAX interfaces. Use the conditional if_success to show a success message and if_failure to show a failure message. You can also call the native module message using the 'message' variable.
Variables
Inside the 'members' variable pair you can invoke any standard member variable as well as any custom member field.
As well, you can call the 'permission_label', 'permission_name' and 'permission_description' variables to indicate the permission point label, name and description respectively.
Variable Pairs
members
{members}your code{/members}
This variable pair is what you use to indicate the formatting of the member list.
Conditionals
You can run conditionals on any standard or custom member field inside the 'members' variable pair.
You can also run a conditional on 'no_members' outside of the 'members' variable pair. This will allow you to catch the cases where no members have been added to a permission point.
Examples
{exp:permission:member_list name=“some_point”}
{if no_members}<p>Currently no one belongs to this list.</p>{/if}
<p>The following people belong to {label}.</p>
{members}
{screen_name}<br />
{/members}
{/exp:permission:member_list}