Table of Contents

DaftDrafts Plugin

Compatible with DokuWiki

Angua, 2012-01-25; 2011-05-25 "Rincewind"

plugin Can mark pages as drafts, thus hiding them completely from unregistered users

Last updated on
2011-11-06
Provides
Syntax, Action

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Similar to publish, underconstruction

Tagged with hide, moderation

Installation

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

Compatibility

This plugin is compatible with Rincewind (2011-05-25), but it could very well be compatible with older versions. You'll just have to try it.

Examples/Usage

Usage

Effect

If you are an unregistered user, the page will not show up. If you are registered, you can see the page, as well as a red warning on the top of the page, which reminds you that the following page is a draft; hidden from the view of unregistered users.

What does the plugin do to achieve this?

Technically, the plugin adds two ACL-entries that sets @ALL to have the permission AUTH_NONE, and @user to have the permission AUTH_EDIT. When the code is removed from the page's text, the ACL-entries are also removed.

Development

This plugin is built upon the Underconstruction plugin, however I was very dissatisfied with how that plugin worked, and so I had to create a new one. The Underconstruction plugin was flawed in that the draft-system would break whenever any ACL was deleted from the ACL management plugin that comes with DokuWiki Rincewind. This plugin does not suffer from that flaw. Several other improvements makes this a much easier code to work with, in case I find out that I want to add more functionality to the plugin.

I was also inspired by the Publish plugin, but found that it didn't work how I expected. I wanted to hide pages completely from unregistered users so they didn't even know that the pages existed, but the Publish plugin couldn't do that.

Change Log

Known Bugs and Issues

ToDo/Wish List

To Do
Wish list

FAQ

Discussion

1)
but only if the ACL-settings were once added by this plugin, so your other ACL-settings should be safe