Gravatar for

Question by psomtri, Apr 27, 2015 10:49 PM

Facet Title Localization

I am looking to localize the facet section title I thought it will be picked up from Display Name field on the facet item defined under /sitecore/system/Settings/Buckets/Facets. But is not working, section title is picked up from what is given in facet component title. What is the purpose of "Display Field" ? Is there any other way of localizing the facet section title ?

2 Replies
Gravatar for

Answer by Luc Bergeron, Apr 28, 2015 9:22 AM

Yes indeed, the Coveo Facet component does not get its title from the Sitecore facet item. The answer to this question might help you achieve what you want:

Basically, you need to create an item from the Facet Parameters template and point the Datasource field of your facet component on the item. You can then add the language versions you need.

I hope this helps

Gravatar for

Answer by psomtri, May 2, 2015 1:18 AM

This the solution that we implemented without having to override datasource of the component and have additional items for translations. We already have existing function for translations, all that function needed is the English word that needs translations. So we put our english version in facet component title field and then we wrapped it in our translation function in facet .ascx file as shown below.

Replace this <div class="CoveoFacet" data-title='<%= Model.Title %>'


<div class="CoveoFacet" data-title='<%= mycustomTranslator.Translate(Model.Title) %>'

Ask a question