Customizing the Full Search Button Options

Lightning Experience Coveo for Salesforce 3.42 (November 2019)

The FullSearch component is a button automatically displayed in the Lightning Insight Panel that allows your users access to a full length Coveo search page inside a Salesforce console.

FullSearchButton

You can either modify the options by using the options in the Interface Editor or directly in the code view.

FullSearchInterfaceEditor

Changing the Title

You can modify the displayed title of the button by entering a title in the Title section or by adding the following code:

<div class="CoveoFullSearch" data-title="My Full Search"></div> where the default value is Full Search.

Opening the Full Search Page in the Same Tab as the Insight Panel

You can open the Full Search page in a new subtab by clicking the checkbox or by adding the following code:

<div class="CoveoFullSearch" data-open-in-subtab="false"></div> where the default value is true.

Making the Button Invisible

You can remove the button by clicking the checkbox or by adding the following code:

<div class="CoveoFullSearch" data-visible="false"></div> where the default value is true.

Changing the Full Search Page’s Search Hub

When you want to change the search hub to make it the same as the Lightning Insight Panel search hub, you should follow the steps below.

You must set the fullSearchComponent option in your Lightning Insight Panel (see AgentPanel Lightning Component)

  1. Log in to your Salesforce organization using an administrator account.
  2. Open your Developer Console.
  3. Create a new Lightning component (see Create Aura Components in the Developer Console), using the following code sample:
<aura:component implements="flexipage:availableForRecordHome,lightning:isUrlAddressable" access="global" >
    <CoveoV2:FullSearch name="coveoFullSearch" searchHub="MySearchHub" pageReference="{! v.pageReference}"></c:FullSearch>
</aura:component>
Recommended Articles