Gravatar for

Question by Simon, Aug 13, 2018 5:32 PM

Modify the no result message using Coveo for Sitecore Hive

Curious if there is an easy way to modify the no results message using Coveo for Sitecore Hive.

If possible without affecting the out of the box components.

1 Reply
Gravatar for

Answer by amoreau, Aug 13, 2018 5:46 PM

It depends on what you mean by easy, but it is possible to use the `coveo-show-if-no-results` CSS class to show specific messages only when there are no returned results:

You can then disable the QuerySummary component to remove the default no result message (see ).

Know that we are currently working on simplifying this process, which should be in an upcoming release of the Coveo JavaScript Search Framework ( ).

Hope this helps!


Gravatar for

Comment by Simon, Aug 13, 2018 6:11 PM

So just to add a bit of details for Hive. The QuerySummary component is available in Hive but the default result message is not available in the properties. Hence the current way to change the no result message would be to use the dataset attribute of the component such as explained in this post :

Ask a question