Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Hi,
Maybe you could compare current content model language with preferred culture?
if (EPiServer.Globalization.ContentLanguage.PreferredCulture.Name != this.CurrentPage.Language.Name) { }
The CurrentPage should have your fallback language assigned while PreferredCulture should use assigned language
Hi,
Thanks for your answer, that's the kind of solution I was looking for but I didn't know the PreferredCulture would contain the expected language.
I'll have a go at this and let you know if it did it.
Regards,
Matthieu
Hi,
I've searched but cannot find how to check whether a page is displayed in its language or its fallback language (programmatically).
I had a look at ContentLanguageSettingsHandler with no luck.
Any help is welcome.
Regards,
Matthieu