The people directory allows site contributors to create profile pages for their staff, faculty, students, etc., and have those pages aggregate into a searchable directory.
- customizable affiliations (e.g., staff, faculty, student)
- profile pages for each individual
- directory entry fields to display information such as profile picture, name, preferred pronoun, contact information, and information about the user
- a searchable directory to display an aggregated list of all profiles. Visitors can search based on name or filter by affiliation (the filter will automatically be hidden if it's not used).
Getting started with the people directory
The people directory entry is just another content type, like basic pages, articles and events. Though the fields have been designed to capture profile information, the basic concepts of editing and maintaining directory entries is consistent with all other content in WebPublish.
For help maintaining your people directory content, visit our tutorials under Managing Content You can get started by learning how to edit and delete content.
The people directory entry content type allows you to tag your profiles with customized affiliations. These tags act as a way of grouping your directory entries and can help visitors to your site find people in the searchable people directory where all profiles are aggregated.
Before you can tag a directory entry, you need to add the affiliations to your site. You can do this by following the instructions for adding a term to a vocabulary in the our Taxonomy tutorial. Terms should be added to the Affiliation vocabulary.
Once your terms have been added, they will appear automatically in the Affiliation section of the page when editing existing and future people directory entry content.
All published directories will automatically display certain fields (e.g., profile picture, name, position, location, address, contact information, short description, if applied) on a searchable directory page. This page is different from other pages because it is generated using something called a View, meaning that it doesn't offer the same page moderation and menu linking options as a regular page.
To add a menu link to the searchable people directory to your site navigation:
- Navigate to Structure > Menus
- Select "Edit menu" for the Main navigation menu
- Click "Add link"
- Add a Menu link title (e.g., People Directory)
- In the Link field, add the following: /people (this is the relative alias of the directory page for all WebPublish 3.0 sites)
- Select a parent item from the Parent link drop-down, if you'd like the link to appear somewhere other than on the top-level navigation
In the URL Alias field, uncheck the box to Generate automatic URL alias (see Figure 1), and add /people-search to the beginning of the URL alias for each entry. This will generate a breadcrumb that users can click on to get back to the main directory (see Figure 2).
People directory entries will automatically appear on the searchable directory page when they are published. Likewise, they will be removed from the directory when they are unpublished, archived or deleted.
If there are specific profiles that you'd like to highlight on your people directory, you can use the entries promotion options to "pin" the profile to the top of the list. To do this:
- Navigate to the individual people directory entry and click Edit
- In the right menu listing, select "Promotion Options"
- Choose "Sticky at top of lists"
- Save your page; in order for the change to be reflected on the people directory page, ensure the changes are published.
Now, when viewing your people directory, the user's profile will appear at the top of the list. Red styling will be added along with the "pinned" star icon.
If you have multiple profiles pinned, they will revert to the default sorting for the page (i.e., alphabetically, by Display Name)
Navigate to the Appearance menu, under the "WebPublish 3 Basic (default theme)" section choose Settings, then choose People Directory Settings. Check/uncheck the fields you would like displayed.