O'Reilly logo

Drupal 8 Development Beginner's Guide - Second Edition by Kurt Madel, Malabya Tewari, Rakesh James, Krishna Kanth, Edward Crompton, Samuel Keen, Tassos Koutlas, Neeraj Kumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required