Gravatar for wrolloff@gmail.com

Question by Will Rolloff, Jan 3, 2017 1:00 PM

Hide facet header title

Is there an option to completely hide a facet header title and show only the list of facet values using the Coveo for Sitecore Facet View rendering?

1 Reply
Gravatar for sbelzile@coveo.com

Answer by Sébastien Belzile, Jan 3, 2017 1:18 PM

There is no such option in Coveo for Sitecore and in the JS Framework, but this can easily be done using CSS.

By curiosity: what is the use case?

Gravatar for jflheureux@coveo.com

Comment by Jean-François L'Heureux, Jan 3, 2017 1:32 PM

The CSS is :

.coveo-facet-header {
  display: none;
}
Gravatar for sbelzile@coveo.com

Comment by Sébastien Belzile, Jan 3, 2017 1:34 PM

or

.coveo-facet-header-title {
  display: none;
}

depending on what you wish to remove.

Gravatar for wrolloff@gmail.com

Comment by Will Rolloff, Jan 3, 2017 1:51 PM

Thank you. The use case is a list of miscellaneous values that are boolean based. Each facet either has a value or does not. Stacking several of these takes up a lot of screen real estate and the facet heading is meaningless. Putting them all under a miscellaneous facet heading is not desirable either.

Gravatar for jflheureux@coveo.com

Comment by Jean-François L'Heureux, Jan 3, 2017 5:02 PM

I would then advise to create a multi-value computed index field and a single facet on that field. It would perform better.

Lets say you actually have 3 fields (wifi, netflix, youtube) with values of Yes/No for TVs. The computed index field would have values of 0 to 3 of the features like "wifi", "wifi;youtube" or "wifi;netflix;youtube". The facet will then list only these values.

Ask a question