Gravatar for bhanu.korthiwada@outlook.com

Question by Bhanu Prakash, Jul 30, 2018 5:11 AM

In Sitecore, how to display facets even when there are no results?

Just wanted to disable them using CSS instead of removing it completely.

Gravatar for flguillemette@coveo.com

Comment by François Lachance-Guillemette, Jul 30, 2018 2:13 PM

Any specific reason for that?

The component is not quite designed for that. Sometimes you have weird facet value behavior when executing a new query since the code expects the component to be hidden.

But still, it can be done, like in the Sitecore Experience Editor, where you want to click on a Facet even if it does not have values. This is what your end-users will get if you force displaying the facet.

I'm just not sure the user experience would be improved by this change.

0 Reply
Ask a question