# Categorizing and Displaying Profiles

Some departments choose to display their staff profiles by the team they (belong) to, doing this with our Drupal platform will give you the following view. These instructions will guide you through the process of categorizing the profiles on your site by the teams they work in.

![An Example of a categorized profile page](/files/-Ldu95rIvq5XpRTAHdBA)

## Adding Profile Categories (e.g web & development solutions)

1. Add profile category terms using the steps in [How to Add Vocabulary Terms](/ugcontenttypes/howto-profiles.md#How-to-Add-Vocabulary-Terms)
2. Click edit beside each term you added and get the term Id from the URL (/taxonomy/term/`#`/) ![URL to retrieve taxonomy term](/files/-Ldu95rLCiH5luw1g2yp)

## Adding the Terms to a Custom Menu Block on the Right Side of the Page

1. Using the administration bar, navigate to structure > menus
2. Select add menu ![blue add menu option with a plus sign](/files/-LdtcNaeHb_SPNW3LogT)
3. Enter a menu title e.g. Faculty and Staff Directory
4. Click, save
5. Select Add link ![blue add link option](/files/-LdteUG5McrVEzOAHBs1) and do the following for each taxonomy term you created in step 1(Link to add vocabulary terms)
   * Enter a "title" e.g. a section name (Deans office)
   * Enter the term Id you copied from **step 2** in the following format `people/#` into the “path” field. Where `#` is the Id number

## Adding the People page

1. Navigate back to menus ![breadcrumb pathe to menus](/files/-Ldu95rRX58OVk5Jpsmh) and click on "add link" on the right of the Main menu option
2. Enter a menu link title e.g. Staff & Faculty
3. Enter "**people**" into the “path” field

## Adding the Custom Menu as A block on profiles page

1. Navigate to structure > blocks
2. Select Add menu block ![Add menu block with a plus sign](/files/-LdteWF3_R20lbaObDaj)
3. Enter a title you would like as the “Block title” and “administrative title” e.g. Faculty and Staff Directory
4. Select the menu title you created under the “menu” drop down
5. Select “starting level” as 1st level (Primary)
6. Within the region setting select secondary in the drop down
7. Select “Only the listed pages” radio button
8. In the text area enter the following paths
   * people
   * people/\*


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ccsdrupalguide.uoguelph.ca/advancedguide/howto-categorizeanddisplayprofiles.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
