|
Cookbook /
TrashSummary: "safely delete" pages so that they can be restored and listed with pagelists
Version:
Prerequisites:
Status:
Maintainer: cda
Categories: Administration, WikiFarms
QuestionHow can I "safely delete" pages and act as the OS "trash" or "recycle bin" ? AnswerCopy trash.phpΔ to the cookbook directory and add
to config.php. Notes and CommentsThe recipe adds two actions: 'trash' and 'untrash'.
Pagelists can be used to view the pages that are trashed, and to present links to untrash them.
By default, the user is redirected to the (un)trashed page. Optionally, the redirect parameter can be used to specify another page:
See AlsoContributorsChristophe David original script |