[pmwiki-users] Restoring Deleted Pages

Patrick R. Michaud pmichaud at pobox.com
Wed Jan 24 12:03:20 CST 2007


On Wed, Jan 24, 2007 at 12:38:54PM -0500, The Editor wrote:
> So I decided to go ahead and post to see if I could get some feedback.
>  Here's a couple questions:
> 
> 1) Is there any way built in to PmWiki to restore deleted pages?

No.  I've always left this to be an admin-only function, because
there's always the question of selecting the correct version of
a page to restore.

> 2) Is there any way to include deleted pages in a pagelist?

No.  PmWiki's view of deleted pages is that they are in fact 
gone and inaccessible via the web without direct intervention
from an administrator.

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.

> 3) Should zap only restore the most recent page or give a choice?

Give a choice, definitely.

Pm




More information about the pmwiki-users mailing list