Hello everyone,
so I have a section content element with this node property:
properties:
indendContent:
type: boolean
defaultValue: true
ui:
inspector:
group: container
In Fusion I want to wrap the content
in a <div class="container">|</div>
if the editor has set the property:
prototype(XYZ.Site:Content.Section) < prototype(XYZ.Site:Content) {
indendContent = ${q(node).property('indendContent')}
content = Neos.Neos:ContentCollection {
nodePath = "column"
@process.wrap {
expression = ${'<div class="container">' + value + '</div>'}
@if.contentShouldBeIndented = ${props.indendContent}
}
}
renderer = afx`
{props.indendContent} <-- Debugging: Just for checking the current value
<section>
{props.content}
</section>
`
}
The usage of {props.indendContent}
shows 1
in the rendered HTML but the wrap of the div container is not applied. I tried props.indendContent
and this.indendContent
and non of them worked while @if.contentShouldBeIndented = true
works as expected.
Tried also not using expression
:
@process {
wrap = ${'<div class="container">' + value + '</div>'}
wrap.@if.contentShouldBeIndented = ${props.indendContent}
}
I think it has to be something with handing over the property.
Do you know whats the probleme here?
Thanks in advance!
Best regards