Copied to clipboard

Flag this post as spam?

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


  • NSC 23 posts 123 karma points
    Aug 17, 2023 @ 14:09
    NSC
    0

    ContentPublishedNotification but node not published?

    Hi,

    When publishing a unpublished node, with unpublished children, it looks like Umbraco tries to publish those as well, at least in code.

    In the example below, I published "EXAMPLE 001 Sel..." and in the code I saw a successful ContentPublishedNotification for all 19 children - but according to Umbraco's backoffice, all children are still unpublished. How can a ContentPublishedNotification get caught, without the content also being published?

    enter image description here

    enter image description here

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Aug 17, 2023 @ 15:12
    Huw Reddick
    0

    did you use Save and Publish or Publish with descendants ?

    did you enable Include unpublished content items. option

  • NSC 23 posts 123 karma points
    Aug 17, 2023 @ 15:14
    NSC
    0

    Normal save and publish :)

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Aug 17, 2023 @ 15:46
    Huw Reddick
    0

    What umbraco version are you using? Mine does not appear to behave like that

  • NSC 23 posts 123 karma points
    Aug 18, 2023 @ 06:08
    NSC
    0

    Newest version, so 12.1.1

    EDIT: And weirdly enough the notification itself for the top node shows that it doesn't include descendants... But then it proceeds to fire of the ContentPublishedNotification for all the 19 children...

    enter image description here

  • Christoffer Mouritzen 1 post 21 karma points
    Jan 19, 2024 @ 08:52
    Christoffer Mouritzen
    0

    Yeah this part does not make much sense to me either. To address this in my code, I implemented a step to bypass any entities where 'published' is set to false, as I do not want my program to process these unpublished entities.

Please Sign in or register to post replies

Write your reply to:

Draft