results

Outputs the specified details in conjunction with the form tag. Note there is a no_results implementation to display a default view.

Params

The available parameters used with the results Template Tag.

role_id

The specific roles, if any, you want to limit the search by. Multiple role_ids can be seperated by a pipe

limit

How many results to return per page; defaults to 20

url_segment

The number the URL segment is for the offset value (defaults to 2)

prefix

The string the preceeds the offset number. Used in conjunction with the url_segment parameter; defaults to M

order_by

The member fields to order results

sort

Whether asc or desc. Works in conjunction with order_by parameter; defaults to desc.

Example

  {exp:member_list:results 
      role_id="6|7" 
      limit="10" 
      url_segment="2" 
      order_by="last_name|first_name"
  }
    {if no_results}
      <h2 style="border:0;">Unfortunately, there are no members available for your search; however, please check back at a later date as members are being added all the time.</h2>
    {/if}
    <p>
      <span class="news_title">{first_name} {last_name}</span>
      <a href="mailto:{email}">{email}</a>
    </p>
{/exp:member_list:results}