[pmwiki-users] deleted pages in pagelists
Christophe David
pmwiki at christophedavid.org
Thu Dec 18 04:19:42 CST 2008
> I would like to display in a page the list of deleted pages in a group.
> As the deleted pages are skipped from the search and page list results, I
I just published a new recipe to do that: see
http://www.pmwiki.org/wiki/Cookbook/Trash .
The recipe adds two actions: 'trash' and 'untrash'.
MyGroup.MyPage?action=trash
will "rename" MyGroup.MyPage to MyGroup.MyPage-trashed
MyGroup.MyPage-trashed?action=untrash
will "rename" MyGroup.MyPage-untrash to MyGroup.MyPage
Pagelists can be used to view the pages that are trashed, and to
present links to untrash them.
(:pagelist name=*-trashed:)
By default, the user is redirected to the (un)trashed page.
Optionally, the redirect parameter can be used to specify another
page:
MyGroup.MyPage?action=trash&redirect=Main.HomePage
Feedback welcome.
Christophe
More information about the pmwiki-users
mailing list