I can't find info on whether this is supposed to work, or the documentation on it. I'm hooked into the "ContentService_Published" event, which does some PDF saving functionality, but it only works if I do a regular "Publish", rather than "Publish with Descendants".
If you unpublish a content item, it does not recursively go unpublish every single descendant, that overhead would be a killer. All descendants are unpublished (not visible) because it's ancestor is unpublished. If you publish with descendants that single ancestor then the publish event will only trigger for the one that is being changed - that is one content item.
If you publish with descendants and choose to publish unpublished items - then the publishing event will also be raised for those explicitly unpublished items.
It's not a 'problem', this is the expected behavior.
Long story short - only descendants with changes will fire the publish event.
ContentService.Published not firing when using Publish with descendants
I have an IComponent set up like this:
And I don't see any logs for publishing when I use "Publish with descendants". In the case of a single page publish, it works fine.
Any ideas how I can capture multiple entities being published?
Actually, it seems like the "Publish with Descendants" isn't doing anything at all most of the time.
Hi Alan,
Did you ever figure this out ?
I can't find info on whether this is supposed to work, or the documentation on it. I'm hooked into the "ContentService_Published" event, which does some PDF saving functionality, but it only works if I do a regular "Publish", rather than "Publish with Descendants".
Im running into the same problem today: save event is firing, save and publish event is firing - but save and publish with decendants is not.
Umbraco 8.9.1
Quoting @Shazwazza's response from https://github.com/umbraco/Umbraco-CMS/issues/9167 for others arriving here looking for the same answer:
Long story short - only descendants with changes will fire the publish event.
is working on a reply...