Gravatar for

Question by Daniel Reedy, May 19, 2015 6:16 PM

'Sort By: Relevance|Date' in Sitecore

I see documentation for the OTB "Sort By: Relevance|Date" in the Coveo built-in search interfaces:

However, I don't see that feature in our Coveo-Sitecore layouts. Am I missing something, or do I have to build my own?

I see a placeholder in the Search control:

<% if (Model.DisplaySorting) { %>
    <div class="coveo-sort-section">
        <sc:placeholder key="coveo-sorts" runat="server"></sc:placeholder>
<% } %>

I assume this "coveo-sorts" placeholder is where the Sort Control(s) gets inserted.

1 Reply
Gravatar for

Answer by Vincent Séguin, May 19, 2015 6:40 PM


Indeed. You have to insert a Coveo Sort component (there are 3 kinds, Relevance, Date and Field) in this placeholder, either by the Content Editor or by the Page Editor.

Thank you

Gravatar for

Comment by Daniel Reedy, May 19, 2015 6:43 PM

okay, cool. If I insert multiple Sort Controls, can I approximate the dual functionality of "Sort By: Relevance|Date"?

Gravatar for

Comment by Vincent Séguin, May 20, 2015 7:29 AM

Yes, you can insert a Relevance and a Date sort. You can insert multiple of them as well.

Ask a question