London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
Could it work to attach the movingpageevent and check if the parent page is the wastebasket?
Hello,
I have handle the delete (move to wastebasket) of my pages by adding an eventt on DataFactory.Instance.MovedPage += Instance_MovedPage; and checking if the page IsDelete like this:
private void Instance_SavedPage(object sender, PageEventArgs e)
{
var page = e.Page ?? DataFactory.Instance.GetPage(e.PageLink);
if (page.IsDeleted)
{
e.Page = page;
....
}
}
But how can I detect when a user retore the page?
REgards,
Benjamin