Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
For 7.5 you should be using IContentRepository instead of DataFactory. And new PageReference(EPiServer.Configuration.Settings.Instance.PageStartId) is now replaced with EPiServer.Web.SiteDefinition. ContentReference.StartPage can also be used as it is equipvalent to SiteDefinition.Current.StartPage by default.
Hi,
I have below code in episerver 6
var startPage = EPiServer.DataFactory.Instance.GetPage(new PageReference(EPiServer.Configuration.Settings.Instance.PageStartId));
How to convert this to episerver 7.5
Please suggest
var startPage =
EPiServer.DataFactory.Instance.GetPage(
new PageReference(EPiServer.Web.SiteDefinition.Current.StartPage));