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");
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);