Score:0

How do I select multiple values with one checkbox?

bf flag

With Facets module/search API, I have a checkbox filter where I need to merge some value.

Example:

vocabulary  = color

term = light red

term = dark red

term = light blue

term = dark blue

In this case i have 4 checkbox.

My checkbox should look like this

vocabulary  = color

term = red

term = blue

And When i tick Red it list all content tagged with dark red and light red And When i tick blue it list all content tagged with dark blue and light blue

thus the parent term will not be a used value in the filtered content, but only the child value will filter the content.

Question : Is it possible to do that with taxonomy hierachy option in the facets?

sonfd avatar
in flag
Are red and blue actual terms in your vocabulary, where light red and dark red are children of a parent term, red?
Score:0
bf flag

I've resolved this with by activating 'index Hierarchy" in the Search API processor configuration page with the proper taxonomy selected. in the taxonomy i've created new parent term and putted the childs in it, then in the facets those parent are displayed - in a checkbox in my case - and when selecting those parent it filter the content with the value of all the childs. Note that I've excludes the display of the childs in the checkbox, in the facets properties.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.