Table of Contents

Approve Plugin

Compatible with DokuWiki

  • 2024-02-06 "Kaos" yes
  • 2023-04-04 "Jack Jackrum" unknown
  • 2022-07-31 "Igor" unknown
  • 2020-07-29 "Hogfather" unknown

plugin An approval/draft system for DokuWiki

Last updated on
2024-06-25
Provides
Syntax, Action
Repository
Source
Requires
sqlite

Similar to publish, structpublish

Tagged with moderation

Installation

:!: This Plugin depends on the following other plugins:

Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

Description

The plugin is an alternative to the publish plugin but it differs in some ways:

Like in the publish plugin pages can be approved by the users that has AUTH_DELETE permission for the page.

Syntax

The syntax component allows you to place the table with wiki pages and its states. The minimal syntax is:

---- approve table ----
----

You can narrow the results only to specific namespace:

---- approve table ----
namespace: some:namespace
----

Show the page id's that satisfy the regular expression:

---- approve table ----
filter: /regex/
----

Show the pages that have some status:

---- approve table ----
states: approved, draft, ready_for_approval
----

Hide the summarize at the bottom of the table:

---- approve table ----
summarize: 0
----

You can show only a pages for specific approver:

---- approve table ----
approver: user
----

Approver can be currently login user:

---- approve table ----
approver: $USER$
----

You may join several filters:

---- approve table ----
namespace: some:namespace
filter: /regex/
states: approved, draft, ready_for_approval
approver: $USER$
summarize: 0
----

Approve Assignments

The plugins adds additional admin panel “Approve Assignments” that has two main tasks:

  1. It allows to define pages and/or namespaces where the plugin will be used.
  2. It allows define the page/namespace approver - a person or group (with @ prefix) who will be responsible for approving the page. The approver will be displayed in the plugin's banner, approve table and will receive notifications if the notification plugin is used.

When the page has its approver, the user or group members are the only ones who can approve the page (this can be turned off in plugins configuration). Approver needs only AUTH_VIEW permission to approve the page. When the approver isn't set, all users with AUTH_DELETE permission can approve the page.

Configuration

Integration with notification plugin

This plugin integrates with notification plugin and adds notifications for approvers about the pages that aren't approved yet.

Discussion

https://github.com/gkrid/dokuwiki-plugin-approve/issues