Skip to end of metadata
Go to start of metadata

CoveoDateSort.ascxCoveoFieldSort.ascx, and CoveoRelevancySort.ascx are sublayout files that represent sort components. Their default location is c:\inetpub\wwwroot\SitecoreInstanceName\Website\layouts\Coveo\.

Digging into Their Code

  • There is a different Inherits attribute value for each of them.
  • There is a single div element with a class attribute equal to CoveoSort, which is automatically rendered as a Sort component.
  • A set of options are passed as custom attributes to the component, such as data-title='<%= Model.Title %>':
    • These options customize the behavior as well as the look and feel of the component.
    • Model refers to a property of the user control, which wraps the different properties associated with the Sort component.