DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:structstatus

structstatus Plugin

Compatible with DokuWiki

  • 2017-02-19 "Frusterick Manners" unknown
  • 2016-06-26 "Elenor Of Tsort" yes
  • 2015-08-10 "Detritus" unknown
  • 2014-09-29 "Hrun" unknown

plugin Display a document status using struct data

Last updated on
2016-11-29
Provides
Syntax, Action
Repository
Source
Requires
struct

Similar to labeled

Tagged with status

This plugin adds a new type to the struct plugin to add a status to a page. The status can be shown and changed prominently in a sidebar.

The list of possible statuses is configured through a lookup schema.

Installation

:!: This plugin requires the struct plugin which has to be installed first.

Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.

Setup

After installation, create a new lookup schema in the Schema Editor and import the schema provided in status.struct.json.

Next create a page and add the Lookup Editor for the schema:

---- struct lookup ----
schema: status
----

Use the editor to define the statuses you want to have available:

Now you can use the new Status type in your page schemas (the schema config references the lookup schema you created earlier)

To add the status widget to your sidebar, insert the following code into our sidebar:

~~NOCACHE~~
{{struct-status>pageschema.status}}

pageschema is the page schema you used the statu type in and status is the name of that status field. Th widget will only be shown when you are on a page that has the pageschema assigned.

The status can easily be changed by clicking the appropriate status (requires the proper permissions to edit the page and struct data).

plugin/structstatus.txt · Last modified: 2017-03-09 21:14 by andi