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

Forums / General Discussions / Pages have disappeared

Pages have disappeared

6 posts, 0 answered
  1. Tys
    Tys  avatar
    8 posts
    Registered:
    04 Mar 2009
    24 Mar 2010
    Link to this post
    Hi Everyone,

    I'm having a strange problem. Some pages from my SiteFinity (3.7) website have disappeared. At least, that's the best i can say about it. There are more people working on this website so i cannot be 100% sure that no one has deleted the pages. But i doubt why anyone would.
    I've already read that once deleted, a page cannot be restored. If this is not true, please let me know.
    But my biggest question is, is there a log or something where i can read what exactly happened to these pages?

    Regards, Tys
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    24 Mar 2010
    Link to this post
    Hello Tys ,

    If the pages are deleted, you cannot restore them anymore. There is no track log that you can check. You can create a custom log and restore option by subscribing for Executed or Executing events of CmsManager class. You could check sf_PageBase table which contains all cms pages to see whether the missing objects are deleted or somehow they are hidden.

    All the best,
    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.
  3. MB
    MB avatar
    302 posts
    Registered:
    09 Jan 2005
    25 Mar 2010
    Link to this post
    FWIW, this happened to me once, when a customer accidentally dragged an entire page tree and dropped it into an obscure sub-section, where nobody would expect it to be. Once we found out what had happened, it was just a case of dragging them back to where they should be, and all was fixed, but caused a few heart-attacks at the time.
  4. Tys
    Tys  avatar
    8 posts
    Registered:
    04 Mar 2009
    26 Mar 2010
    Link to this post
    Hi Ivan, thanks for your answer. I'll try to implement that logging myself.
  5. Tys
    Tys  avatar
    8 posts
    Registered:
    04 Mar 2009
    29 Mar 2010
    Link to this post
    Hi Ivan,
    i've been reading some things about this topic.. but, do you have an example on how to setup such an event handler?
    Regards, Tys
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    29 Mar 2010
    Link to this post
    Hi Tys ,

    You could add the logic in Global.asax - Application_Start. Another option is adding event handler in application start that calls class from a custom class

    void Application_Start(object sender, EventArgs e) 
       {
           // Code that runs on application startup
           Samples.Initializer _initialize = new Samples.Initializer();
           Telerik.Cms.CmsManager.Executed += new EventHandler<Telerik.ExecutedEventArgs>(_initialize.PageActionExecuted);
       }

    namespace Samples
    {
        public class Initializer
        {
            public void PageActionExecuted(object sender, ExecutedEventArgs e)
            {
                if (e.CommandName == "DeletePage")
                {
                    // your logic goes here
                }
            }
        }
    }


    Greetings,
    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.
Register for webinar
6 posts, 0 answered