Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

As Episerver Find index based on unique ContentGuid index, it’s possible to add Folders for different languages.

Because for every language in DAM there is a related folder with unique Id.

But for files it’s not allowed, because there is only one file for all languages.

So, the ContentGuid property is the same for all languages.

It means that only first language will be added to the Index, all other languages will be skipped.

For resolving this issue and adding multiple languages to the Index, there is a code for replacing last symbols in ContentGuid with LanguageId:

...
item.ContentGuid = new Guid(item.ContentGuid.ToString().Substring(0, item.ContentGuid.ToString().Length - language.LanguageId.ToString().Length) + language.LanguageId.ToString());
...

This solution doesn’t affects ContentLink, so Asset is available by ContentLink.

With this solution it’s possible to search Assets in different languages.

  • No labels