Gravatar for jpdery@coveo.com

Question by jpdery, May 5, 2014 11:46 AM

How to customize CoveoSearch Salesforce page

In a Salesforce (sandbox org), how can I customize the CoveoSearch Salesforce page ? I see the source code, but cannot change it. I want to remove a search tab (Opportunities).

1 Reply
Gravatar for olamothe@coveo.com

Answer by olamothe, May 5, 2014 2:15 PM

In Salesforce, you cannot directly modify a page that comes from an installed package.

What you can do is copy paste the source code from the page, and create a new customized page. Also, since your page is not part of the package, you will have to manually change the namespace of the different components.

<apex:page standardstylesheets="false" sidebar="false" docType="html-5.0">
    <coveosolutions:coveoattachtocase></coveosolutions:coveoattachtocase>
    <coveosolutions:coveojssearch stylesheet="CoveoFullSearch.css"></coveosolutions:coveojssearch>

[...]
Etc

The autocompleter inside salesforce should propose stuff related to Coveo package as you type coveo[…]

And when you save, it should also warn you if you are referencing stuff that doesn't exist in the current namespace.

Gravatar for glaporte@coveo.com

Comment by Gregory Laporte, May 5, 2014 2:16 PM

Note that you should remove the CoveoConfigurationCheck component since it's not global and it's not useful in a custom context.

Ask a question