Try our conversational search powered by Generative AI!

Episerver Find Typed search and fallback languages

Vote:
 

We have a customer that has limited content available in English. If content is not available in English then they want to fallback to Dutch. So far so good, and in the CMS itself this works fine. However, when using Find to get a list of all pages of a specific type we can only get pages back in the current language without fallback. According to this page on Episerver World we can get results from a different language by calling InLanguageBranch, but here we can only specify a single language branch. We need GetContentResult to get the content in English if available, otherwise use the CMS setting for language fallback to get the Dutch version.

Is this possible at all? If so, how?

#202143
Mar 15, 2019 12:43
Vote:
 

Figured it out, we shouldn't be doing a FilterForVisitor and instead do ExcludeDeleted and FilterOnReadAccess. This skips PublishedInCurrentLanguage and thus fixes our problem.

#202144
Mar 15, 2019 13:47
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.