> For the complete documentation index, see [llms.txt](https://salsa-digital.gitbook.io/govcms-site-builder/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://salsa-digital.gitbook.io/govcms-site-builder/unit-6-content-listing-with-views/related-content-by-term/exercise-6-5-make-a-list-of-states-territories-block.md).

# Exercise 6.5: Make a list of States/Territories block

In this exercise we’ll add a list of the **States and Territories** in the sidebar, so the page looks like the screenshot below.<br>

<figure><img src="/files/V5AQIPrG2E3OBifsvmjn" alt=""><figcaption><p>States Block in sidebar</p></figcaption></figure>

1. Go to **Structure** → **Views**. Click **+ Add new View**. Add in these settings:

   * **View name:** States/Territories.
   * Select to enable **Description**: A list of State and Territory terms.
   * Show *Taxonomy* terms of type *State/Territory* sorted by *Unsorted*.
   * Select **Create a block**.
   * **Block title**: States/Territories.
   * **Display format**: *HTML list* of *Fields*.
   * **Items per block**: 0.
   * **Use a pager**: Leave unselected.
   * Click **Save and edit**.

   <figure><img src="/files/1YFvAuDW1GK0cr8QTc1K" alt=""><figcaption></figcaption></figure>
2. Go to Structure → Block Layout.
3. In the *Sidebar* area click the **Place block** button.

   <figure><img src="/files/gDxSDpuiCy9FOSFzx2ke" alt=""><figcaption></figcaption></figure>
4. Find **States/Territories** block in **Lists (Views)** category and click the **Place block** button.

   <figure><img src="/files/nODjShVuitYMv31PH9lX" alt=""><figcaption></figcaption></figure>
5. Configure block visibility settings to only display it on the **Job Posting** *content type*.

   <figure><img src="/files/jMW0mzX1rvGkoLfAZUvt" alt=""><figcaption></figcaption></figure>
6. Click **Save block**.
7. Scroll down and click **Save Blocks** to complete.
8. Navigate to a *Job posting* content page and locate your block.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://salsa-digital.gitbook.io/govcms-site-builder/unit-6-content-listing-with-views/related-content-by-term/exercise-6-5-make-a-list-of-states-territories-block.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
