Jump to:

3372 Posts in 998 Topics by 712 members

Data Model Questions

SilverStripe Forums » Data Model Questions » Undelete page, or Version control after a delete

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1488 Views
  • johnmblack
    Avatar
    Community Member
    61 Posts

    Undelete page, or Version control after a delete Link to this post

    I have been successful so far with the page history features of SilverStripe (2.4.5) and rollback, etc., as long as the page is still there -- but how do I roll back an accidental delete?

    Someone accidentally deleted a page with over a 35 child pages. It's actually those child pages that I need. You can't access them from the left-nav, of course, because the parent isn't there.

    p.s. if you search the forums for "roll back", even surrounded by quotes, you get over 2,000 results -- including pages with only "roll" or "back". There doesn't seem to be a way to do a phrase search.

  • johnmblack
    Avatar
    Community Member
    61 Posts

    Re: Undelete page, or Version control after a delete Link to this post

    Any ideas?

    I have to assign out the work to rewrite all these pages tomorrow. Love to find a quick fix before then if possible.

  • martimiz
    Avatar
    Forum Moderator
    1035 Posts

    Re: Undelete page, or Version control after a delete Link to this post

    Did you try selecting 'All pages, including deleted' in the 'show' dropdown (top left of the cms) and restore from there?

  • dynamite
    Avatar
    Community Member
    66 Posts

    Re: Undelete page, or Version control after a delete Link to this post

    Someone did the exact same thing here!

    I can see all of them in "SiteTree_versions" -- can I try and cobble a query together to copy them back to "SiteTree" and/or "SiteTree_Live"?

  • martimiz
    Avatar
    Forum Moderator
    1035 Posts

    Re: Undelete page, or Version control after a delete Link to this post

    It's possible but you really need to know what you're doing if you want perform the sql queries yourself!

    Still - deleted pages should be visible/restorable once you select 'All pages including deleted' (or your language's equivalent) from the topleft dropdown in the CMS. Did you check that?

  • dynamite
    Avatar
    Community Member
    66 Posts

    Re: Undelete page, or Version control after a delete Link to this post

    Ah, I see them now. I thought I tried that last night, but I must have been looking in the wrong place.

    Thanks a mint!

  • steve_nyhof
    Avatar
    Community Member
    224 Posts

    Re: Undelete page, or Version control after a delete Link to this post

    What about in silverstripe 3.0
    How do you undelete a page in silverstripe 3.0 ?

    1488 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.