Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Alan Draper 15 posts 74 karma points
    Oct 29, 2019 @ 23:35
    Alan Draper

    ContentService.Published not firing when using Publish with descendants

    I have an IComponent set up like this:

    public void Initialize() {
      ContentService.Published += ContentService_Published;
    public void ContentService_Published(Umbraco.Core.Services.IContentService sender, Umbraco.Core.Events.ContentPublishedEventArgs e) {
      Logger.Info(GetType(), "Published {N} entities.", e.PublishedEntities.Count());

    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.

    Here's the log after publishing the home page and also publishing with descendants

    Any ideas how I can capture multiple entities being published?

  • Alan Draper 15 posts 74 karma points
    Oct 30, 2019 @ 18:49
    Alan Draper

    Actually, it seems like the "Publish with Descendants" isn't doing anything at all most of the time.

  • Sebastian Dammark 537 posts 1222 karma points
    Apr 21, 2020 @ 11:24
    Sebastian Dammark

    Hi Alan,

    Did you ever figure this out ?

  • Jason D 14 posts 35 karma points
    Aug 25, 2020 @ 18:08
    Jason D

    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".

Please Sign in or register to post replies

Write your reply to: