I’m trying to get rid of the default wrapping div containers which are created using the built in prototypes. There is already a discussion about that here which helps a lot, but I couldn’t find out how to remove the <div class="neos-contentcollection"> wrappers for contentcollection nodes. How do I overwrite the output of contentcollections?
I found a way for childNodes of type ContentCollection
page = Page {
body {
// These are your content areas, you can define as many as you want, just name them and the nodePath.
content {
// The default content section
main = PrimaryContent {
nodePath = 'main'
}
// A footer ContentCollection
footer = ContentCollection {
nodePath = 'footer'
// prevent adding default css class .neos-contentcollection
attributes.class.@process.collectionClass >
// add custom css classes
attributes.class = 'ui fluid container'
}
}
}
}
For main – the PrimaryContent – it is a bit more complicated, since PrimaryContent is of type TYPO3.TypoScript:Case
In order to change the css classes for every page: