I'm currently working on a 13.5.2 site in which I'm running into a weird issue.
When I select the option "publish with descendants" only 1 page is published. I'm using a notificationHandler and in there I can see that
notification.SavedEntities
is always 1 item.
Is anyone familiair with this issue and how to fix this?
m
McGurk
12/02/2024, 4:40 PM
I would check that you're using the correct notification handler for what you're trying to achieve. The saved handler will only be called on the node that trigging the publishing with descendants. The nodes below that aren't being saved just published.
You can see the list of noticifactions here: https://docs.umbraco.com/umbraco-cms/reference/notifications#list-of-notifications
Something like the ContentPublishingNotification may be more suitable
b
Bram
12/10/2024, 2:53 PM
Sorry for my late response but thanks for the tip! Unfortunately this also didn't work so I decided to implement custom logic to publish the descendants. This has the unexpected benefit of me now being able to decide in the appsettings if i want to publish descendants and for which type of pages i want to do this