DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:struct:type

This is an old revision of the document!


Struct Plugin

Struct Plugin: Types

Types are used when defining schemas. Each field in the schema has to have a type. It configures what data is accepted in the field and how it will be displayed later on.

Available Types

Configuration

Each type has its own specific configuration options described on the type's own page linked above. In addition there's some configuration available to each type described here:

Config Format Description
label array of strings This array contains keys for all languages available in the wiki (as defined by the translation plugin). You can use this to set translated labels for the field. These are used when showing the data or displaying the data editor. It's recommended to use short, rarely changing field names and set speaking names through this mechanism.
hint array of strings Similar to the label field but can be used to give some more detailed info about how to fill the field in question. Shown as tooltip.
plugin/struct/type.1510616315.txt.gz · Last modified: 2017-11-14 00:38 by 72.34.128.250

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