In this exercise we’ll add a list of the States and Territories in the sidebar, so the page looks like the screenshot below.\
States Block in sidebar
-
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.
-
Go to Structure → Block Layout.
-
In the Sidebar area click the Place block button.
-
Find States/Territories block in Lists (Views) category and click the Place block button.
-
Configure block visibility settings to only display it on the Job Posting content type.
-
Click Save block.
-
Scroll down and click Save Blocks to complete.
-
Navigate to a Job posting content page and locate your block.