Skip to content

Commit fc26b02

Browse files
authored
[FIX] node context
asset is not properly set if the node is modified via context, because the order of evaluation in context cant be influenced.
1 parent 16605d0 commit fc26b02

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Resources/Private/Fusion/Root.fusion

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ prototype(Neos.NodeTypes:Image) {
33
templatePath = 'resource://Onedrop.ImageSrcset/Private/Templates/NodeTypes/Image.html'
44

55
@context.config = ${Configuration.setting('Onedrop.ImageSrcset')}
6-
@context.asset = ${q(node).property('image')}
76
@context.maximumWidth = ${this.maximumWidth}
87

98
srcset = Neos.Fusion:Collection {
109
collection = ${config.sizes}
1110
itemName = 'size'
1211
itemRenderer = Neos.Neos:ImageUri {
13-
asset = ${asset}
12+
asset = ${q(node).property('image')}
1413
maximumWidth = ${size}
1514
maximumHeight = ${size}
1615
@process.wrapSrc = ${(size <= maximumWidth ? (value + ' ' + size + 'w' + (iterator.isLast ? '' : ', ')) : '')}

0 commit comments

Comments
 (0)