I have a hierarchical taxonomy and would like to set up a select facet for the top level, and a dependent select for the second level.

Has this been tested to work with the latest Facets 3, which integrates with Better Exposed Filters in views?

I'm able to set up facets with the first and second level using this module.

However, I am confused about the dependee setting.

Should that go on the parent or child facet?

It looks like the configuration option is for the old facet configuration in Configure > Search > Facets. I'm expecting to see my views facet here.

Second level taxonomy facets

Comments

mortona2k created an issue. See original summary.

mortona2k’s picture

Issue summary: View changes
mortona2k’s picture

I got the basics working. https://www.retrograde.bike/parts

retrograde.bike parts search

Category and Part type are the same taxonomy, I used this module to place level 1 and 2 facets. Brand, Groupset, and Groupset series are different taxonomies that have references that create a hierarchy.

They all work the same. With ajax enabled, all filters update with the available facets.

The only thing I am wondering about at this point is the dependee configuration and whether anything is missing from the old api.

ac’s picture

Are you able to share your view config to see how you did this? I am not having much success.

mortona2k’s picture

It turns out that when the first facet filers the results, the options in the dependent facet are limited to the values in the results, so no additional config is needed.

That's why I'm wondering about the dependee configuration - I didn't need to use it.