Prototype attributes.class for Text only outside of MultiColumn


how can I add a class für text, image, headline and so on, but not for text, image, headline within a multicolumn-node?

I use this, but there is always the class within the Multicolumn Text

prototype(TYPO3.Neos.NodeTypes:Text) { attributes.class = 'container' } prototype(TYPO3.Neos.NodeTypes:Headline) { attributes.class = 'container' } prototype(TYPO3.Neos.NodeTypes:Image) { attributes.class = 'container' } prototype(TYPO3.Neos.NodeTypes:Multicolumn) { attributes.class = 'container' }

I wonder why you would want to do that, because you can easily target them differently via CSS, but if you must you can nest prototypes to override properties of one prototype just if it is rendered within another:

prototype(TYPO3.Neos.NodeTypes:Multicolumn) {
     attributes.class = 'container'

     prototype(TYPO3.Neos.NodeTypes:Image) {
         attributes.class = 'text-in-multicolumn'

Thanks a lot , great so easy! And with css I try
.container .container {
width: 100%;

And it’s work too! Thanks a lot! I think I love Neos.