SharePoint 2013 Hosting – :: How you can Produce a simple SharePoint 2013 People Directory

I previously posted How to Use A Community Site on SharePoint 2013. The process is somewhat various in SharePoint 2013 due to the considerable modifications in the research features therefore the up-to-date actions are demonstrated in this publish.

A people directory may be helpful if you’d like to checklist each of the people within an organisation without consumers having to enter a search question. Consumers can then slim down the list making use of filters including Section or Occupation Title to narrow the outcome. This is truly simple to setup using the default SharePoint 2013 research internet parts and does not require creating an individual line of code. An example of what this could search like is proven below :


Specially when the organisation only includes several hundred people this could aid users discover individuals inside the organisation without having automatically realizing their names. The measures to create this are as adhere to (assuming the consumer profile and lookup providers are operating successfully):

  1. Assuming you’ve got an company lookup middle create the initial step to make the people listing is always to allow the individuals search webpage structure so we are able to develop a individuals lookup final results webpage. This can be carried out by navigating for the Site Settings > Look and Feel | Page layouts and site templates page and selecting ‘(Welcome Page) Search People’ in the Page Layouts section.
  2. The subsequent phase is to navigate towards the webpages library and choose New Document > Page from the ribbon.
  3. On the create page display select the Lookup Individuals web page layout to make a web page that contains the people search results web components.
  4. The normal lookup result net component does not show any final results except if a query is specified. To acquire all people to show up by default we must modify the query employed through the Individuals Lookup Core Final results web element. This can be carried out by clicking the ‘Change Query’ button within the net component homes and incorporating a house filter that returns all folks. To accomplish this we are able to choose the property ‘contentclass’ and enter the guide value ‘spspeople’.
  5. We now have a checklist of people that will be exhibited when the user navigates to our custom made individuals results web page. By default we even have some refinements that seem if matching metadata is identified within the outcome set. These are the Section, Job Title, Key phrases and Place of work Location columns. We are able to change these to indicate other metadata qualities which are described inside our search centre by choosing the ‘Choose refiners’ alternative on the refinement internet element. Note the managed property must have the ‘Refinable’ choice selected within the lookup schema for it for being available within this listing.

Adding Sorting by Last Name

Incorporating extra kind options is way less difficult than in SharePoint 2010. To incorporate a custom sort choice like Last Identify stick to the actions under:

  1. Ensure which the managed property you want to sort by has the Sortable choice enabled inside the lookup schema. To complete this navigate to the Search Service Application > Search Schema, click the LastName, click on the LastName managed house and choose the Sortable: ‘Yes – active’ option. Note you’ll require a complete crawl for this to consider impact.
  2. On the search results page edit the People Search Core Results web part, verify the ‘Show sort dropdown’ option and enter the following text:

    [{"name":"First name (A-Z)","sorts":[{"p":"FirstName","d":0}]},{"name":"First name (Z-A)","sorts":[{"p":"FirstName","d":1}]},{"name":"Last name (A-Z)","sorts":[{"p":"LastName","d":0}]},{"name":"Last name (Z-A)","sorts":[{"p":"LastName","d":1}]},{"name":"Social distance","sorts":[]}]8

  3. You need to now be able to sort by very first or previous title in alphabetical buy either A-Z or Z-A.

Using a Table Based Structure

Yet another alternative for the folks directory is to use a desk based mostly structure with column headers for properties. In SharePoint 2013 this can be completed making use of Show Templates. In this case we need to use two display templates – a handle template for your table header, and a item template for each search outcome merchandise. The actions to implement this are proven beneath.

  1. Step one is always to include the screen templates for the masterpage gallery by Site Settings > Master Pages and Page Layouts > Display Templates > Search and upload the two html files in the subsequent .zip archive.
  2. The following step is always to edit the search main final results net element and in the Screen Template section established the outcome Handle Display Template to ‘Table Result’ and the Product Display Template to ‘People Table Item’.
  3. You ought to now see the final results shown like a desk primarily based structure as demonstrated below:

If you have worked with prior variations of SharePoint you can see that in SharePoint 2013 the lookup attributes tend to be richer and easier to function with. Additionally, there are several new features such as question rules and extensibility choices such as customising the hover panel that improve the top person research expertise.