diff --git a/Configuration/Settings.Carbon.yaml b/Configuration/Settings.Carbon.yaml index 7ee60c6..9231007 100644 --- a/Configuration/Settings.Carbon.yaml +++ b/Configuration/Settings.Carbon.yaml @@ -24,6 +24,7 @@ Carbon: DisableCacheBusterForPreloadAsset: true ConditionPrototype: null Wrapper: null + Order: 'General,Backend,Live' Path: Inline: CSS: 'Private/Templates/InlineAssets' diff --git a/Resources/Private/Fusion/Internal/Package.fusion b/Resources/Private/Fusion/Internal/Package.fusion index 763962a..3531bdf 100644 --- a/Resources/Private/Fusion/Internal/Package.fusion +++ b/Resources/Private/Fusion/Internal/Package.fusion @@ -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}