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.
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