Hey,
great!!!
Both solutions gave me the hints that I needed. Peters solution takes the main part:
I added a custom eel helper as explained in here: https://docs.neos.io/cms/manual/extending-neos-with-php-flow/custom-eel-helpers with minor adaptions to Peters helper. Did the adaption in the yaml files to add the ‘wrapContainer: true’. But in my case I used this adaption for my fusion code:
prototype(Neos.Neos:Content) {
attributes.class = ${q(node).property('indentIt') == true ? 'contentIndent' : ''}
// Section stuff
@process.wrapContentElement = Neos.Fusion:Tag {
tagName = 'section'
attributes.class = ${q(node).property('bgColor') == true ? 'bgColorGray' : ''}
content = ${value}
@if.wrapWithSection = ${Vendor.site.CollectionHelper.wrapWithSection(node)}
}
}
Thank you very much for inspiring me.
And thanks Sebastian for your hint. This I can use in another project where I’ve never thought about the augmenter.