plugin:struct:type
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:struct:type [2016-03-08 13:52] – [Available Types] andi | plugin:struct:type [2023-11-01 16:11] (current) – [Struct Plugin: Field Types] andi | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Struct Plugin: Types ====== | + | <= [[plugin: |
+ | ====== Struct Plugin: | ||
- | 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. | + | When defining |
+ | |||
+ | Note: in general you're free to give your fields arbitrary names. However for ease of use, it is recommended to use simple identifiers as name and use the field label for nicer names. Especially the use of spaces or dots can make the use of the field in aggregation and filter syntax more complicated than needed. Eg. instead of using '' | ||
===== Available Types ===== | ===== Available Types ===== | ||
+ | * [[type_checkbox|Checkbox]] | ||
+ | * [[type_color|Color]] | ||
+ | * [[type_decimal|Decimal]] | ||
+ | * [[type_tag|Tag]] | ||
* [[type_text|Text]] | * [[type_text|Text]] | ||
- | * [[type_integer|Integer]] | ||
* [[type_page|Page]] | * [[type_page|Page]] | ||
* [[type_date|Date]] | * [[type_date|Date]] | ||
+ | * [[type_datetime|DateTime]] | ||
+ | * [[type_dropdown|Dropdown]] | ||
+ | * [[type_lookup|Lookup]] | ||
+ | * [[type_mail|Mail]] | ||
* [[type_media|Media]] | * [[type_media|Media]] | ||
* [[type_user|User]] | * [[type_user|User]] | ||
* [[type_url|Url]] | * [[type_url|Url]] | ||
+ | * [[type_wiki|Wiki]] | ||
+ | Additional types can be defined by [[plugins]]. | ||
===== Configuration ===== | ===== Configuration ===== | ||
- | Each type has it' | + | Each type has its own specific configuration options described on the type's own page linked above. In addition there are some configuration |
- | ^ Config | + | ^ Config |
- | | label | array of strings | + | | label |
- | | hint | + | | hint | array of strings |
+ | | visibility -> inpage | ||
+ | | visibility -> ineditor | ||
plugin/struct/type.1457441547.txt.gz · Last modified: 2016-03-08 13:52 by andi