Open Sebobo opened 2 weeks ago
How I solved it in my customers project for now:
referenceNodes = Neos.Fusion:Collection {
collection = ${referenceNodesArray}
itemRenderer = Neos.Neos:ContentCase {
# Show hidden state of referenced node in backend via CSS
@process.applyHiddenProperty = Neos.Fusion:Augmenter {
class = 'referenced-node-is-hidden'
style = 'opacity: 0.3;'
@if.hidden = ${node.hidden}
@if.inBackend = ${node.context.inBackend}
}
}
itemName = 'node'
// Disable ContentElementWrapping for references itself
prototype(Neos.Neos:ContentElementWrapping) {
@if.render = false
}
// Disable InlineEditable for references itself
prototype(Neos.Neos:Editable) {
renderer.editable.condition = false
}
}
Note: I would have like to use the class from the Neos UI, but it is prefixed by the JS build.
Is there an existing issue for this?
Current Behavior
When the original node is hidden, the reference doesn't show the translucent effect like the original does, therefore making it impossible to see whether the original is hidden. The frontend completely hides the node.
Expected Behavior
The same translucent effect should be applied to references of hidden nodes
Steps To Reproduce
Create an image and hide it. Then use it in a reference.
Environment
Anything else?
No response