Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Hi,
Can you try to use EPiServer.DataAccess.SaveAction.CheckIn instead of EPiServer.DataAccess.SaveAction.Save?
Another thing I noted in your code is you're calling CreateWritableClone in the Save-method. That's not needed as DataFactory.Instance.GetDefault<T> always returns a writable instance.
I have created a page programatically
var childPage = DataFactory.Instance.GetDefault(masterPage.PageLink);
childPage.PageName = childPage .PageTitle = "XXX";
childPage.URLSegment = EPiServer.Web.UrlSegment.CreateUrlSegment(childPage);
DataFactory.Instance.Save(
childPage.CreateWritableClone(),
EPiServer.DataAccess.SaveAction.Save,
EPiServer.Security.AccessLevel.NoAccess);
when web editor select the page in page tree view he can see publish option for the page
but it is not appearing in task gadget of web editor so that the editor can check his tasks and can publish the page