History log of /plugin/struct/types/Dropdown.php (Results 1 – 21 of 21)
Revision Date Author Comments
# 7f70c93c 12-May-2025 splitbrain <86426+splitbrain@users.noreply.github.com>

�� Automatic code style fixes


# 24eec657 12-May-2025 Andreas Gohr <gohr@cosmocode.de>

combobox representation for dropdowns and lookups


# 7fe2cdf2 13-Sep-2023 Andreas Gohr <andi@splitbrain.org>

apply #670 and manually cleanup afterwards

fixes some failing tests
uses sexplode over array_pad
reformats multiline arrays


# 7234bfb1 13-Sep-2023 splitbrain <splitbrain@users.noreply.github.com>

�� Automatic code style fixes


# 0549dcc5 13-Jan-2022 Andreas Gohr <andi@splitbrain.org>

PHP code sniffer autofixes


# d6d97f60 09-Apr-2020 Anna Dabrowska <dabrowska@cosmocode.de>

Automatic coding style fixes


# 3e7a5b3c 13-Jun-2017 Michael Große <grosse@cosmocode.de>

Refactor to use buildAttributes -> cleaner code


# ee983135 02-Jun-2017 Michael Große <grosse@cosmocode.de>

Fix multiple inputs in one label: it's invalid ��

Multiple inputs within a single label in invalid HTML. This bug can not
only occur in multi-fields but also in plugin-provided single fields
which m

Fix multiple inputs in one label: it's invalid ��

Multiple inputs within a single label in invalid HTML. This bug can not
only occur in multi-fields but also in plugin-provided single fields
which may contain multiple input-fields which are then only combined by
javascript.

Thus, we provide an id which every type can assign to the edit-field
best suited. For multi-types this is usually the new-input-template.

Fixes #292

show more ...


# d329f04c 17-Nov-2016 Andreas Gohr <gohr@cosmocode.de>

another fix for multi value dropdowns

This had been only partly fixed in a3f28bd5749019a23c6a298391781f8480629536


# a3f28bd5 14-Nov-2016 Andreas Gohr <gohr@cosmocode.de>

use correct value for multi lookups. fixes #208

The problem was in how values were saved, so you need to resave your
data after this fix is applied.


# 9b8dc0b2 11-Oct-2016 Andreas Gohr <gohr@cosmocode.de>

Lookup Dropdowns are now handled separately

Dropdowns are now back to being simple value pickers. To select data
from a different Schema the Lookup type was introduced. This makes the
code a bit sim

Lookup Dropdowns are now handled separately

Dropdowns are now back to being simple value pickers. To select data
from a different Schema the Lookup type was introduced. This makes the
code a bit simpler.

Users who used the Dropdown type to reference schemas will need to
reconfigure their schema to make use of the Lookup type instead.

The Lookup type now handles self references (fixes #171) and references
to page schemas correctly.

show more ...


# 0e72ef50 10-Oct-2016 Andreas Gohr <gohr@cosmocode.de>

renamed JSON to STRUCT_JSON. fixes #157


# c0230d2c 24-Aug-2016 Andreas Gohr <gohr@cosmocode.de>

Always use raw values for editors

This is another attempt to fix #140. The valueEditor() and
multiValueEditor() now always expect raw values to be passed. The Value
class was adjusted accordingly. I

Always use raw values for editors

This is another attempt to fix #140. The valueEditor() and
multiValueEditor() now always expect raw values to be passed. The Value
class was adjusted accordingly. It now allows to set the raw value
(which is what we get from POST). If done, the Value object is treated
as a rawonly Value that will throw an exception when you try to access
value or displayvalue.

show more ...


# d6177a87 15-Aug-2016 Andreas Gohr <gohr@cosmocode.de>

implement rendering via sub type in Dropdown


# 3eadf179 15-Aug-2016 Andreas Gohr <gohr@cosmocode.de>

fix displayValue for looked up type, more tests


# f9365ee1 15-Aug-2016 Andreas Gohr <gohr@cosmocode.de>

fixed constructor signature


# 56dced67 15-Aug-2016 Andreas Gohr <gohr@cosmocode.de>

Add Lookup Support to Dropdown

Instead of specifying values directly, one can now specify a lookup
schema where the data is read from. The specified field name may contain
a $LANG place holder to be

Add Lookup Support to Dropdown

Instead of specifying values directly, one can now specify a lookup
schema where the data is read from. The specified field name may contain
a $LANG place holder to be replaced with the current language string.

There is currently no enforcement that the specified schema is indeed a
lookup schema. It should work with a non-lookup as well.

show more ...


# 79d22ad4 27-Jul-2016 Michael Grosse <grosse@cosmocode.de>

Clean values in multiValueEditor, not in valueEditor

Since rawValue expects a single value it may not be able to handle
multiple concatinated values.

This caused an error for the pagetype in a mult

Clean values in multiValueEditor, not in valueEditor

Since rawValue expects a single value it may not be able to handle
multiple concatinated values.

This caused an error for the pagetype in a multi value field with
usetitles enabled.

show more ...


# ba766201 28-Apr-2016 Andreas Gohr <gohr@cosmocode.de>

Use DokuWiki new autoloader for class files

No longer do we need to register our own autoloader. Namespace had to be
vendor prefixed.


# e90d3288 16-Mar-2016 Andreas Gohr <gohr@cosmocode.de>

added empty option to dropdown to be able to deselect


# 69068579 16-Mar-2016 Andreas Gohr <gohr@cosmocode.de>

implement dropdown type #36