DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:struct:type_lookup

Struct PluginTypes

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

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