DNN Search only works when language cookie is en-US

女生的网名这么多〃 提交于 2019-12-11 21:26:29

问题


I've a DNN 7.2 site with 3 languages and search functionality . The search works only and only if the language cookie is set to en-US .

If the culture in the search service URL is fr-FR and the language cookie contains "fr-fr", which is very normal, the search will not work, if i changed the cookie manually to be "en-US" and left the url culture as is "fr-fr" the search works as expected and return french results .

Why this happens ? Is there a fix ?


回答1:


DNN7.2 Search is Locale-Aware, meaning content is indexed and found based on language/culture. The fr-fr page can only be found when search is executed from a French/French page, at the same time, culture-neutral pages can be found from any language. So if your portal has only one installed language (en-US), you will not see any of the multilingual options of the module.

The main points to check:

  1. Language pack installed

  2. Content Localization enabled

  3. Add/Enable individual languages (you can do this from the Admin/Languages page as SuperUser)



来源:https://stackoverflow.com/questions/24086746/dnn-search-only-works-when-language-cookie-is-en-us

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!