Skip to content

Commit 316f498

Browse files
authored
Merge pull request #3678 from neos/bugfix/adds-dimension-grouping
BUGFIX: Adds group for dimension configuration
2 parents c5f577e + 8fc5502 commit 316f498

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Classes/Fusion/Helper/ContentDimensionsHelper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ public function contentDimensionsByName(ContentRepositoryId $contentRepositoryId
5656
$result[$dimension->id->value]['presets'][$value->value] = [
5757
// TODO: name, uriSegment!
5858
'values' => [$value->value],
59-
'label' => $value->getConfigurationValue('label')
59+
'label' => $value->getConfigurationValue('label'),
60+
'group' => $value->getConfigurationValue('group'),
6061
];
6162
}
6263
}

Tests/IntegrationTests/TestDistribution/DistributionPackages/Neos.Test.OneDimension/Configuration/Settings.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,26 @@ Neos:
99
values:
1010
'en_US':
1111
label: English (US)
12+
group: NON-EU
1213
specializations:
1314
'en_UK':
15+
group: NON-EU
1416
label: English (UK)
1517
'de':
1618
label: German
19+
group: EU
1720
specializations:
1821
'nl':
22+
group: EU
1923
label: Dutch
2024
'fr':
25+
group: EU
2126
label: French
2227
'da':
28+
group: EU
2329
label: Danish
2430
'lv':
31+
group: EU
2532
label: Latvian
2633
Neos:
2734
sites:

0 commit comments

Comments
 (0)