Don't miss out Virtual Happy Hour this Friday (April 26).
Try our conversational search powered by Generative AI!
AI OnAI Off
Don't miss out Virtual Happy Hour this Friday (April 26).
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