Virtual Happy Hour canceled for Friday May 31st.
Try our conversational search powered by Generative AI!
AI OnAI Off
Virtual Happy Hour canceled for Friday May 31st.
Here's some sample code: Programmatically switching language branch in EPiServer.
Frederik
Didn't quite get how i can use that info to construct a link...further:
this does not work, why?
CurrentPage.GetPageLanguage("en").LinkURL used on a (eg) finnish page does not produce link to the english page.
/Lassi
Hey,
Try this:
var pageReference = new PageReference(???)
foreach(culture in siteCultures){
var urlResolver = ServiceLocator.Current.GetInstance<UrlResolver>();
var url = urlResolver.GetVirtualPath(pageReference, culture);
}
I would like to have a link in my menu (.ascx) to different languages so that the link points to the same page (ID). Can't just find a simple way to do <a href=" ???????? " > to achieve this. Good hacks?