Skip to end of metadata
Go to start of metadata

CoveoSearchResources.ascx is a sublayout file that includes a set of dependencies or resources used by a search interface. Its default location is c:\inetpub\wwwroot\SitecoreInstanceName\Website\layouts\Coveo\CoveoSearchResources.ascx.

Digging into Its Code

The code of CoveoSearchResources.ascx is rather straightforward:

  • It includes these dependencies:
    • Stylesheets, which defines the appearance of a search interface. You could easily override those styles by adding your own stylesheet, thus allowing you to change the look and feel of your search interface.
    • JavaScript libraries used by the JavaScript Search Framework V1.0, as Coveo for Sitecore embeds a version of it. Thus, when you previewed your search interface in the Sitecore Page Editor, what you actually saw was the JavaScript Search Framework in action.
  • It contains a standard asp:PlaceHolder control, which is only used to display the Coveo Search Resources string.

What's Next?

Proceed to reading Overview of CoveoSearch.ascx.