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
There is a repository that keeps track of deleted items, to be able to restore them. You should be able to use that repsoitory to get the previous parent. Like:
ServiceLocator.Current.GetInstance<EPiServer.DataAccess.IParentRestoreRepository>().GetParentLink(contentLink)
It should return the previous parent (or ContentReference.EmptyReference if the item is not found in the repository)
Hello,
I need to do something when a page IsDeleted but how can I retreive its orignal location to retreive his parent.
Regards,
Benjamin