Skip to content

Commit b350203

Browse files
authored
Add Support for inherited dimensions
Get the dimensions from node.context.dimensions. This way it works also with inherited dimensions like in this example for "ch": {"country":["ch", "int"],"language":["de"]}
1 parent 04fc044 commit b350203

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Resources/Private/Fusion/SearchPlugin.fusion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ prototype(Flowpack.SearchPlugin:Search) < prototype(Neos.Neos:Content) {
3333

3434
prototype(Flowpack.SearchPlugin:Search.Form) < prototype(Neos.Fusion:Template) {
3535
node = ${site}
36-
dimensionCombination = ${Json.stringify(this.node.dimensions)}
36+
dimensionCombination = ${Json.stringify(this.node.context.dimensions)}
3737
templatePath = 'resource://Flowpack.SearchPlugin/Private/Templates/NodeTypes/Search.Form.html'
3838
inputClassNames = ''
3939
searchWord = ${request.arguments.search}

0 commit comments

Comments
 (0)