An approval/draft system (aka. sighted revisions) for DokuWiki
Compatible with DokuWiki
Similar to censure, daftdrafts
This plugin was originally written by Jarrod Lowe
Download and install the plugin using the Plugin Manager using the download link given above. Refer to Plugins on how to install plugins manually.
The idea behind this plugin is to differentiate between revisions of a document that are in draft state and those that are approved.
A user with delete or admin permissions can mark a revision as approved while editing. Anyone else gets their revision marked as draft. Users with read permissions will see approved revisions only.
The plugin places a banner at the top of each page, with information about the Approval/Draft status. It may contain notes like:
The banner is colour-coded: Green for the latest approved version, and Red for all others.
The Old Revisions page is colour-coded: Green for approved versions, and Red for drafts.
The Recent Changes pate is colour-coded: Green for approved versions, and Red for drafts.
A user with sufficient permissions (AUTH_DELETE or AUTH_ADMIN) can Approve a page. They do so by editing the page, and ticking 'Approve', and submitting the page.
Placing the tag [APPROVALS] into a page will give a table listing pages which are:
You can limit it to certain namespaces with [APPROVALS:namespace]
You may need ~~NOCACHE~~ to the page.
The plugin only applies to specified namespaces (all, by default).
You can set the list of namespaces through the configuration page. It is a space-separated list of namespaces.
Eg. ”playground foospace blah:somethingspace”
The list only takes namespace names, not individual pages.
By default, a user with AUTH_EDIT or better will see the latest revision of a page, if they do not specify which revision they want. However, someone with only AUTH_READ will see the latest approved revision by default (unless there isn't one).
All users with AUTH_READ or better can still view any revision of a page if they specifically request it – whether or not it is approved.