Gravatar for nemmett@financialforce.com

Question by nick emmett, Feb 9, 2017 12:32 PM

How to change the names of the result categories: Coveo for Salesforce

Hi, I'm looking to see how I can change the names of the filter categories, on the left side of my results, to something more meaningful? the screenshot below shows what I currently get, but it doesn't really mean anything to end users! alt text

Gravatar for gminero@coveo.com

Comment by gminero, Mar 3, 2017 3:01 PM

@Nick Emmett, were you able to change the value caption?

1 Reply
Gravatar for gminero@coveo.com

Answer by gminero, Feb 9, 2017 1:07 PM

you can do so by modifying the valueCaption as stated here:

    // Example: using a facet for file types
var myValueCaption = {  "txt": "Text files","html": "Web page", [ etc ... ]};

Coveo.init(document.querySelector('#search'), {
   Facet : {
     valueCaption: myValueCaption
   }
})
// Or using the jQuery extension
$("#search").coveo("init", {
   Facet: {
     valueCaption: myValueCaption
   }
})
Ask a question