Managing our Categories block

Any time we create a new block display using views, we can easily assign it to any region from the Block layout page. Begin by navigating to /admin/structure/block and then follow these nine steps:

  1. Locate the Sidebar second region.
  2. Click on the Place block button.
  3. Locate the Categories block.
  4. Click on the Place block button.
  5. Select the Pages tab under Visibility.
  6. Enter the path /blog into the Page text field.
  7. On a second line, add another path to /blog/*.
  8. Make sure the Show for the listed pages checkbox is selected.
  9. Click on the Save block button.

With our Categories block assigned to the Sidebar second region, we will now need to add the Sidebar second region to our page.html.twig template before we can preview it.

Get Drupal 8 Theming with Twig now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.