While working on a customer project I am creating a document nodeType which should be rendered differnetly depending on the number of childnodes (of a specific childnode-path).
Rendering works already as I can hand over the number of children to the rendering fusion objects.
But the editor-experience is not perfect right now because after adding the second content-childnode there is no page reload triggered which would solve that problem.
Which version of Neos are you using? Because the new React UI does not trigger those events to my knowledge, only the old UI does that.
However it should be possible to hook into the new UI, however it would require quite a lot more code and know how to do currently. Maybe someone more familiar with the inner workings of the new UI can help /cc @dimaip@sebastian
Wow, yes, there are so many ways to achieve this in the new UI, but all of them a bit low-level. We are thinking of more high-level API, but that would take some time.
E.g. you could register your own server feedback handler:
serverFeedbackHandlers.set('Neos.Neos.Ui:NodeCreated/YourCustomHandler', (feedbackPayload, {store}) => {
if (someCheck) {
// do something
}
});