Selecting a JavaScript Search Result Template to Modify

Coveo for Salesforce 2.26 - July 2016 

You can define more than one search result template with the Coveo JavaScript Search Interface Editor. When you want to customize a search result template, the first step is to select the template to modify.

Coveo for Salesforce 2.26 - July 2016  The new Interface Editor is described in this topic. Prior Coveo for Salesforce versions include a Legacy Interface Editor (see Choosing the JavaScript Search Result Template to Modify With the Legacy Interface Editor).

To select a search result template to modify

  1. Navigate to the Coveo search page for which you want to create a search result template, and then access the Interface Editor (see Accessing the Interface Editor from Coveo Cloud V2 Hosted Search Pages or Accessing the Interface Editor in Coveo for Salesforce V2).

  2. Select an existing template using one of the following methods:

    You can also create a new template based on an existing one (see Creating a JavaScript Search Result Template).

    • From a template

      1. In the Interface Editor, click the UI Settings icon (Icon-AC8_Settings), and then click Result templates.

      2. In the Result templates pane, click the template you wish to modify.

    • From a search result

      In the search results, hover over a search result of the type you wish to modify, and then click the Edit icon (Icon-Edit3) to edit the corresponding template.

      Once you have clicked the Edit icon (Icon-Edit3), you can see the template ID in the Template Option pane. If this is not the template you wish to modify, click Cancel and look further for a search result of the desired type.

What’s Next?

Consider customizing the template grid to add or remove rows and cells (see Modifying a JavaScript Search Result Template Grid).