Hello Community,
i’m trying to implement a template into a Neos project. This worked quite good so far. But now i want to stack some content elements, but that is giving me some brain bugs and challenges.
I’m having a Bootstrap template where i want to add several teaser in different variations to the footer of the website. For this, i have added a NodeType called “teaser”, which i’ve added as one of the childNodes to Page. It looks like the following:
'Vendor.Name:Page': superTypes: 'Neos.NodeTypes:Page': true ui: inspector: groups: footernav: label: 'Footer Menu' childNodes: [...] teaser: type: 'Neos.Neos:ContentCollection' constraints: nodeTypes: '*': false 'Vendor.Name:Teaser': true
After that, i have defined this teaser in my Root.fusion like this, so i can use it inside my Page:
teaser = Neos.Neos:ContentCollection {
nodePath = ‘teaser’
attributes.class.@process.collectionClass >
attributes.class = ‘container page-teasers’
//@if.hasContent = ${q(node).find(‘teaser’).children().count() > 0}
}
And finally added to my Template:
<ts:render path=“teaser” />
This is working and i can add a Teaser element, which i have defined with several properties, and i can add it to my ContentCollection:
But the part that breaks me right now, is that when i add a new teaser, they are not stacked since a new
<div class="row"></div>
will be created (defined inside the NodeType)
That means the teaser is below the other teaser, and not inside the class row:
Is:
How it should be:
I think i’m seaching for a way to put all teasers with name “Teaser 1-3” into that row class instead of adding a new row for each teaser.
The fact that i also want to create teasers with other sizes, arrangements and rows is not making it more easy.
Did someone faced something like this and maybe can resolve my bug? Any help would be appreciated! Thank you a lot!