Monday, 3 April 2017

Get fallback language in code

With the latest Sitecore version, Language Fallback is a key feature for multilingual website. 

Sitecore does the job to get the fallback version and languages for us. 

If you want to get the Fallback Language object, one of the way is below.

            var fallbackLanguage = Sitecore.Data.Managers.LanguageFallbackManager.GetFallbackLanguage(Sitecore.Context.Language, Sitecore.Context.Database);

No comments:

Post a Comment


Automatically create new version for Lock & Edit without workflow

Sitecore will create a new version on Lock and Edit if the item is tied to a workflow. For our case, version has to be created even withou...