Publish Collection instead of Node

Hello,

Currently we’re trying to create a JSON object based on the collection and push it to an external WCMS on publish.

The problem is that I don’t have an event for “all Nodes published” since Neos only emits a signal per single Node published. If for example my collection has 3 child nodes with updates which I want to publish, the API gets called 3 times currently. I only want to call it once for the parent:

image

I could probably get there with AOP, but I’m wondering if there are other ways?

Hi,

f.e. you could listen to the published nodes in a singleton class, stored the closest collection and then run your functionality in the shutdownObject method.

2 Likes