November Happy Hour will be moved to Thursday December 5th.

Get StartPage in different language

Vote:
 

Hi,

I have my site in two languages (english and chinese) and i set english as default language.

Whenever i fetch startpage, it gives me an english startpage. I want to access the startpage in Chinese language. 

How can i access the chinese startpage?

Any solutions? 

Thanks in Advance.

#113896
Dec 01, 2014 12:57
Vote:
 
var contentLoader = ServiceLocator.Current.GetInstance<IContentLoader>();
var startPage = contentLoader.Get<StartPage>(ContentReference.StartPage, new LanguageSelector("zh-CN"));



#113920
Dec 01, 2014 16:02
* 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.