Hello!
I have a search widget in 4.24 which works wonderfully. However the popup that shows the search results has an English title. While everything else is in Dutch (including other elements of this popup). Is there a way to change (the language of) the title?
Thank you in advance!
Leida
Solved! Go to Solution.
Hi @LeidavanHees -
Thanks for reporting this! There is an issue with the translation for the popup title in Dutch for the Search result. We will get this fixed in an upcoming release.
In the meantime, if you'd like to customize the Search result's popup title, you could populate the search widget's popup template when the search-complete event occurs with a custom title and information from the first item in the search results:
searchWidget.on("search-complete", (event) => {
console.log(event)
searchWidget.popupTemplate = {
title: "Zoekresultaat",
content: event.results[0].results[0].name
}
});
Here's a codepen showing this workflow: https://codepen.io/laurenb14/pen/XWBZoBN?editors=1000
Hope this helps!
Hi @LeidavanHees -
Thanks for reporting this! There is an issue with the translation for the popup title in Dutch for the Search result. We will get this fixed in an upcoming release.
In the meantime, if you'd like to customize the Search result's popup title, you could populate the search widget's popup template when the search-complete event occurs with a custom title and information from the first item in the search results:
searchWidget.on("search-complete", (event) => {
console.log(event)
searchWidget.popupTemplate = {
title: "Zoekresultaat",
content: event.results[0].results[0].name
}
});
Here's a codepen showing this workflow: https://codepen.io/laurenb14/pen/XWBZoBN?editors=1000
Hope this helps!
Hi Lauren,
That works beautifully, thank you very much for the help!
Follow-up: we will have this translation fix installed at the next release, anticipated in late February.