On 1/24/07, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > If a site wants to have pages "deleted but still available", > then the best bet is to turn off $DeleteKeyPattern (so that > people cannot delete a page) and provide a way to rename > pages to include a "-Deleted" suffix on the pagename. > > Then pagelist can use $SearchPatterns to exclude pagenames > that end with "-Deleted", and a simple "list=all" parameter > can display the "-Deleted" pages along with others. > Restoring a page is then performed by renaming the page > to omit the '-Deleted' suffix.
While trying to clear out my PmWiki inbox (todolist, dreamlist) I came across this email that no one has commented on. Thought I would fire it out for weekend contemplation. I'm wondering if anyone else has thoughts on which approach is best for undeleting pages: 1) Pm's suggestion of simply renaming them without the "," and then excluding them via SearchPatterns 2) Or allowing pages to be deleted as usual, and provide a mechanism for automatically restoring the most recently deleted version of a page (or perhaps an option of any deleted ones)? Pm's idea was brilliant and very easy to do. But would probably require more tweaking of a site by an admin to get it setup. The second idea seems more natural to the way PmWiki users work, but would require a bit more challenge to write up the code. It seems a valuable enough goal to tackle, but wanted to get feedback from the community before getting to far into this one. Cheers, Dan _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
