Deleted pages show currently as missing page. You don't have any clue that the page did exists in the past, and that you inherit its previous revisions. The only clue you have is the edit bar, that lets you access the page info.
We need a better solution to this. Here are two options:
Deleted pages move to trash
- When you delete a page, its actually renamed to Trash/PageName
- In the trash, the page can not be edited, only reverted back into the wiki
When reverting, the page name revert back to PageName, unless the name exists, and you aske to choose another name.
When you create a new page with the same name, you can get a note (default button marked with ):
A page with same name was deleted by <editor> on <date>. Do you want to revert the page from the trash or create a new page? [Revert Deleted Page] [[Create New Page]]]
Deleted pages locked
- When you delete a page, a new empty revision is made, with "Page was deleted by ..." note. and the page is locked for editing.
When you create new page with same name, you get similar message (default button marked with ):
The page was deleted by <editor> on <date>. Do you want to revert the page or create a new page? [Revert Deleted Page] [[Create New Page]]]
Problems
Deleted data page will hide the underlay page with same name. This is not the effect you want. If you created a FindPage of your own, and then decided to use the underlay page, when you delete your page, you will not have any useful find page. If you solve this by showing the the underlay page for deleted data pages, then you can never access the delete data page for reverting, because the underly page will hide it.
Add your thoughts on this...
You (shall) still access deleted pages through DeletedPages interface like say OrphanedPages.
Thats a good idea, could be a macro, or special page, like MoinTrash
Deleted page never hide anything. It's almost invisible. You reminded about it on creation attempt only. At that point it's good to have a preview old page option. -- MikeRovner 2004-10-31 18:42:55
- Thats also a good idea. When you visit a deleted page, you should see the last version, and the page should be locked.
- We might show the underlay page if a page is deleted and enhance the revision list with the revisions of the page in the data dir.
We should also prevent search engines indexing of deleted pages.
But there is another Problem: If you delete the page "otto" and want to rename "susi" to "otto" you can't, because the directory with the page inside already exists! MoinMoin should merge the contents of both directorys. Example:
In \pages\otto\revisions exist files 00000001 and 00000002. If you delete the page, the content of the file \pages\otto\current looks like this: 00000003.
In \pages\susi\revisions exist files 00000001, 00000002, 00000003 and \pages\otto\current looks like this: 00000003.
If you rename "susi" to "otto" MoinMoin should copy \pages\susi\revisions 00000001,00000002 & 00000003 to \pages\otto\revisions 00000003, 00000004 & 00000005 and change \pages\otto\current to 00000005. Then it should delete the whole \pages\susi directory.
Some implemented solution
See MacroMarket/DeletedPages to handle deleted pages better. This macro is not working with moin_184.