Skip to content

Commit

Permalink
[BUGFIX] Respect string enum specifier in site settings editor (TYPO3…
Browse files Browse the repository at this point in the history
  • Loading branch information
linawolf authored Oct 18, 2024
1 parent 9486d93 commit fb3c37e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Documentation/ApiOverview/SiteHandling/SiteSettingDefinitions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,17 @@ Site setting definition properties
by editing the :file:`config/sites/my-site/settings.yaml` directly,
but not from within the editor.

.. confval:: enum
:type: array
:name: enum
:types: :confval:`site-setting-type-string`

Site settings can provide possible options via the `enum` specifier,
that will be selectable in the editor GUI.

.. literalinclude:: _Settings/_enum_settings.definitions.yaml
:caption: EXT:my_extension/Configuration/Sets/MySet/settings.definitions.yaml

.. _definition-types:

Definition types
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
settings:
my.enumSetting:
label: 'My setting with options'
type: string
enum:
valueA: 'Label of value A'
valueB: 'Label of value B'

0 comments on commit fb3c37e

Please sign in to comment.