November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
PageDataCollection languagesForCurrentPage = EPiServer.DataFactory.Instance.GetLanguageBranches(CurrentPage.PageLink);
That will get you all language versions of CurrentPage...
You can loop or do whatever, sort it by date etc:
foreach (PageData pd in languagesForCurrentPage)
{
if (!CurrentPage.LanguageBranch.Equals(pd.LanguageBranch))
{
}
}
thanks... GetPageLanguageBranches did the trick...i dont understand why the other API calls did not return the correct page version...??
HI guy any help with this is greatly appreciated...im stumped at this point.
I have one page with two language versions (English and French) with the title being "FAQ". I changed the page title on the english side to say "FAQee" and french title is still "FAQ" saved and published...
they show up perfectly fine in the cms so now i went to collect the information and found that regardless of the current page language id GetPage and GetPageLanguage always returns the last published page version. so if french was published last...thats what i get back.
LanguageSelectorContext.SelectedLanguage shows that the alternate language does actually exist...
anyone know what im doing wrong?
thanks in advance guys!