London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
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?