Skip to content

Commit

Permalink
✨ Allow to set the order of the inclusion groups
Browse files Browse the repository at this point in the history
General / Backend / Live
  • Loading branch information
jonnitto committed Sep 15, 2020
1 parent cb98387 commit ade6d34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Configuration/Settings.Carbon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Carbon:
DisableCacheBusterForPreloadAsset: true
ConditionPrototype: null
Wrapper: null
Order: 'General,Backend,Live'
Path:
Inline:
CSS: 'Private/Templates/InlineAssets'
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Fusion/Internal/Package.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ prototype(Carbon.IncludeAssets:Internal.Package) < prototype(Neos.Fusion:Compone
paths = ${props.mergedConfig.Path}
wrapper = ${props.mergedConfig.Wrapper}
collection = Neos.Fusion:Map {
items = ${['General', 'Backend', 'Live']}
items = ${String.split(props.mergedConfig.Order, ',')}
itemRenderer = Neos.Fusion:Value {
condition = ${item == 'General' || (item == 'Backend' && node.context.inBackend) || (item == 'Live' && node.context.live)}
value = ${this.condition ? props.mergedConfig[item][props.location] : false}
Expand Down

0 comments on commit ade6d34

Please sign in to comment.