DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:structstatus

This is an old revision of the document!


structstatus Plugin

Compatible with DokuWiki

No compatibility info given!

plugin

Last updated on
2016-11-16
Provides
CSS/JS-only
Repository
Source
Requires
struct

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 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.1480496971.txt.gz · Last modified: 2016-11-30 10:09 by andi

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki