i hope there is a response, the forum seems quite dead currently
I’m using a defined (not by me) stylesheet which i include from a external resource and e.g. items inside my Neos.Neos:ContentCollection (also others) are wrapped with the
<div neos-contentcollection></div>
I’ve seen some posts here, but not a solution that works for me.
Isn’t it possible to deactivate the rendering of that div at least in the frontend?
If you show some of your markup we can help more easily and give some pointers.
Depending on the structure, the div can be turned into something else and simply be used.
Or use the content collection div on some parent level but render its children via a data-attribute into where you need it.
The div i would like to have removed is the second <div class="neos-contencollection"></div> you can see in the rendered output, which is coming trough the following (i suppose):
You can make your life way easier by not using a seperate carouselItems collection node and instead allow the carouselItems directly below the content.
An exception was thrown while Neos tried to render your page
The Fusion object "guide.MP:Collection.Content.TwoColumns" cannot be rendered: Most likely you mistyped the prototype name or did not define the Fusion prototype with "prototype(guide.MP:Collection.Content.TwoColumns) < prototype(...)". Other possible reasons are a missing parent-prototype or a missing "@class" annotation for prototypes without parent. It is also possible your Fusion file is not read because of a missing "include:" statement.
root<Neos.Fusion:Case>/ documentType<Neos.Fusion:Matcher>/ element<guide.MP:Document.Page>/ body<guide.MP:Component.Template.Default>/ content<Neos.Fusion:Component>/ main<Neos.Neos:PrimaryContent>/ default<Neos.Fusion:Matcher>/ renderer<Neos.Neos:ContentCollection>/ content<Neos.Neos:ContentCollectionRenderer>/ itemRenderer<Neos.Neos:ContentCase>/ default<Neos.Fusion:Matcher>/ element<guide.MP:TwoColumns>/ renderer<Neos.Fusion:Tag>/ content<Neos.Fusion:Tag>/ content<>/
For a full stacktrace, open Data/Logs/Exceptions/202306140648559f62ec.txt`
This can be skipped if the items are direct children of the TwoColumns (weird naming) element.
That should get you a working render.
Afterwards you have to deal with the needs of the backend to:
Select the collection node to insert stuff. This us done with the contentElementWrapping thing and is the main reason the default rendering is adding the div with metadata. The step is not needed if you have no collection.
Tell the ui where new content are to be placed. That is what the data-__neos-insertion-anchor stuff is for and it would be placed on the <grid-row>