+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / How to recover a delete page in Sitefinity

How to recover a delete page in Sitefinity

2 posts, 0 answered
  1. Joel Konecny
    Joel Konecny avatar
    11 posts
    Registered:
    20 Mar 2009
    13 Feb 2010
    Link to this post
    I have a client who accidentally deleted a page in the Sitefinity admin and would like to recover it. What is the best procedure for accomplishing this?

    Thanks in advance,

    Brian
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    14 Feb 2010
    Link to this post
    Hello Joel Konecny,

    There is no recovery point from where you can restore a deleted page. Once the a page is deleted you cannot recover it.You can implement a logic that saves all page data to a table in the database once a page is deleted to prevent loosing data in the future.

    sample code

    You have to subscribe for Telerik.Cms.CmsManager.Executed event in Global.asax, Application_Start.

    void CmsManager_Executed(object sender, Telerik.ExecutedEventArgs e)
      {
      
          if(e.CommnadName == "DeletePage")
                  // save your data into database table
                  break;
          }
      }


    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
2 posts, 0 answered