Skip to content

Commit

Permalink
load parameter group configuration from the package-namespace settings
Browse files Browse the repository at this point in the history
for general settings this feels more natural than settings deeply nested
in the frontendConfiguration
  • Loading branch information
PRGfx committed Oct 2, 2023
1 parent 09f49e9 commit 66b4bbb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
7 changes: 4 additions & 3 deletions Configuration/Settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ Neos:
resource: 'resource://Prgfx.Neos.LinkEditor/Public/Plugin/LinkEditor/Plugin.js'
frontendConfiguration:
Prgfx.Neos.LinkEditor:
groups:
default:
label: Query Arguments
groups: "${Configuration.setting('Prgfx.Neos.LinkEditor.parameterGroups')}"
# This package provides a custom LinkEditor which allows editing linking options. You can disable this by
# setting the replace option to false
linkEditor:
Expand All @@ -32,3 +30,6 @@ Prgfx:
NodeUri: true
UriBuilder: true
ConvertUris: true
parameterGroups:
default:
label: Query Arguments
18 changes: 8 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,15 @@ In case you have multiple types of inputs, you can group them in a "meaningful"
```
Groups can be configured in the frontend settings:
```yaml
Neos:
Prgfx:
Neos:
Ui:
frontendConfiguration:
Prgfx.Neos.LinkEditor:
groups:
tracking:
# supports MyPackage:Source:key translation keys as well
label: Tracking parameters
# optional; if a value is set in that group, the group will always be expanded
collapsed: true
LinkEditor:
parameterGroups:
tracking:
# supports MyPackage:Source:key translation keys as well
label: Tracking parameters
# optional; if a value is set in that group, the group will always be expanded
collapsed: true
```
The default group is called `default`, in case you want to overwrite its settings.

Expand Down

0 comments on commit 66b4bbb

Please sign in to comment.