Gravatar for

Question by s.bhatia209, Oct 8, 2018 3:37 PM

Coveo global search box not working

I have added coveo search resources rendering on my home item in sitecore. And coveo global search box as a static rendering on my layout page (.cshtml).

I am using a partial view to open the search on a popup.

The issue is, if I add the static rendering on layout page then it shows the search box, but when I put this to partial view then it doesn't show.

Can you let me know, what I am missing or is there any configuration I need to do or do I need to add any other rendering on the page?

Gravatar for

Comment by François Lachance-Guillemette, Oct 9, 2018 3:38 PM

It should work like any other Sitecore rendering, so I guess this is a configuration issue.

Have you defined the data source to use for the component, like the following:

@Html.Sitecore().Rendering("ID", new {
 DataSource = "DATA SOURCE ID"

Also, what happens when it "doesn't show", is there any error in the logs or on the search page, or in the Experience Editor?

0 Reply
Ask a question