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!
After you created a page in English you can create other languages for the page using
DataFactory.Instance.CreateLanguageBranch(myPage.PageLink, SomeLanguageSelector)
Hello!
I am creating a page programatically. However the page is only created for the default language wich is english. I want to create the page for all langueages or for the langueage swedish. How do I do this?
my code:
PageReference parent = new PageReference(53);
PageData myPage = EPiServer.DataFactory.Instance.GetDefaultPageData(parent, "Profile");
myPage.PageName = username;
myPage.URLSegment = EPiServer.Web.UrlSegment.CreateUrlSegment(myPage);
//myPage.languegaeID = "sv"; something like this??
DataFactory.Instance.Save(myPage, EPiServer.DataAccess.SaveAction.Publish, EPiServer.Security.AccessLevel.NoAccess);