Detect the restore

Vote:
 

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

#80631
Jan 28, 2014 10:24
Vote:
 

Could it work to attach the movingpageevent and check if the parent page is the wastebasket?

#80632
Jan 28, 2014 10:34
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.