Time for action – building faceted search blocks

Let's look at how you can build one of these faceted search blocks using the Search API and the Drupal 8 facets module:

  1. Download and enable the facets module from (https://www.drupal.org/project/facets) in the way you're used to.
  2. Navigate to Configuration | Search API | Facets and click on the blue Add Facet button. As an example, we'll create a facet block that uses words from the titles of our recipes. However, if you have categorized your recipes using taxonomy terms, you could also base your facet block on that field.

    Give the facet a human readable name and a machine name:

    Time for action – building faceted search blocks
  3. The facet block needs a ...

Get Drupal 8 Development Beginner's Guide - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.