The People Directory - List template displays people, work information, and location. It is built in and comes with your Axero site.
To use the template in People Directory:
To use the template on any other page:
Below is the HTML of this template.
<div class="people-directory"> <ul class="ax-content-list" infinite-scroll='loadMore()' data-widgetid='{{WidgetID}}'> {{#each Contents}} <li data-userid="{{User.UserID}}"> <div class="row-fluid"> <div class="span7"> <div class="p-photo" data-userid='{{User.UserID}}'> <a class="axero-user-card-link" data-user="{{User.UserID}}" href="{{{User.ProfileURL}}}"> <img class="p-avatar" src="{{field:Profile photo}}"> </a> <i title="{{{User.ChatStatusText}}}" class="icon-circle {{User.ChatStatusCSSClass}}"></i> </div> <div class="p-info"> <div class="p-property p-name"><a class="axero-user-card-link" data-user="{{User.UserID}}" href="{{{User.ProfileURL}}}"><span class="field-value" data-fieldid="-2,63,64">{{{User.UserInfoDisplayName}}}</span></a> {{#if RankName}}<img class="p-rank" src="{{User.RankImageURL}}" alt="{{{User.RankName}}}">{{/if}}</div> <div class="p-property p-department"><span class="field-value" data-fieldid="79">{{{field:Occupation}}}</span>{{#if ||field:Occupation||}}{{#if ||field:Department||}} - {{/if}}{{/if}} <span class="field-value" data-fieldid="142">{{{field:Department}}}</span></div> <div class="p-property p-location">{{{field:City}}}{{#if ||field:City||}}{{#if ||field:State||}}, {{/if}}{{/if}}{{{field:State}}}</div> </div> </div> {{#if (or User.InOrgChart User.CanChat) }} <div class="span5 visible-desktop"> <div class="dropdown pull-right"> <a class="dropdown-toggle btn btn-ellipsis" data-toggle="dropdown" href="#"><span class="far fa-ellipsis-v"></span></a> <ul class="dropdown-menu pull-right"> {{#if User.CanChat}}<li><a href="{{../SiteURL}}/chat/user/{{User.UserID}}" target="_blank"><i class="icon-comment"></i> {{../Resources.GlobalForwardMessageText}}</a></li>{{/if}} {{#if User.InOrgChart}}<li><a href="{{../SiteURL}}/people/{{{User.UserName}}}/organizational-chart"><i class="icon-sitemap"></i> {{../Resources.OrgChartText}}</a></li>{{/if}} </ul> </div> </div> {{/if}} </div> </li> {{/each}} </ul> <span class="no-entries hide">{{Resources.GlobalNoMembersFoundText}}</span> </div>
Each field-value span wraps a value that the directory shows in bold when it matches a search or a filter. The numbers in data-fieldid are a site's own IDs for those fields, so yours will differ.
field-value
data-fieldid
Before you add a custom field to the row, know these three things about the field tokens in this template.
{{{field:Name}}}
{{#if ||field:Name||}}
{{#if}}
is requesting access to a wiki that you have locked: https://my.axerosolutions.com/spaces/5/axero-documentation/wiki/view/26613/people-directory-list-template
Your session has expired. You are being logged out.