DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:struct:type_dropdown

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
plugin:struct:type_dropdown [2016-08-25 16:29]
andi [Table]
plugin:struct:type_dropdown [2016-08-25 16:34]
andi [Struct Plugin: Type Dropdown]
Line 2: Line 2:
 ====== Struct Plugin: Type Dropdown ====== ====== Struct Plugin: Type Dropdown ======
  
-The ''Dropdown'' type allows to specify a list of values that can be selected. When the type is set to ''Multi'' multiple values can be selected.+The ''Dropdown'' type allows you to specify a list of values that can be selected or pull them from a configured lookup schema. When the type is set to ''Multi'' multiple values can be selected
 + 
 +When using a lookup schema you can reference different fields based on the language using the ''$LANG'' variable which might be useful for multilingual wikis using the [[plugin:translation|Translation Plugin]].
  
 ===== Configuration ===== ===== Configuration =====
Line 11: Line 13:
 | values  | string  | A comma separated list of values to pick from. Ignored if ''schema'' and ''field'' below are defined.  | | values  | string  | A comma separated list of values to pick from. Ignored if ''schema'' and ''field'' below are defined.  |
 | schema  | string  | A lookup schema to pull the values from                                                                | | schema  | string  | A lookup schema to pull the values from                                                                |
-| field   | string  | The field of the above schema to use as value display                                                  |+| field   | string  | The field of the above schema to use as value display. Use ''$LANG'' placeholder to refer to a language dependent field                                                |
  
  
  
  
plugin/struct/type_dropdown.txt · Last modified: 2016-11-01 10:22 by andi