plugin:struct:type_lookup
⇐ Struct Plugin ⇐ Types
Struct Plugin: Type Lookup
The Lookup
type works similar to the DropDown type1). But values for the dropdown are selected from another schema.
When the type is set to Multi
, multiple values can be selected.
You can reference different fields based on the language using the $LANG
variable which might be useful for multilingual wikis using the Translation Plugin.
Configuration
The following configuration is available in addition to the basic type configuration:
Config | Format | Description |
---|---|---|
schema | string | A schema from which to pull the values |
field | string | The field of the above schema to use as the value display. Use the $LANG placeholder to refer to a language-dependent field |
1)
Note: In old versions of the struct plugin a thing called “lookup schemas” existed. We now call it global data to avoid confusion with this type
plugin/struct/type_lookup.txt · Last modified: 2020-07-17 20:21 by winakeytoheaven