Copied to clipboard

Flag this post as spam?

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


  • Peter Kvayt 4 posts 44 karma points c-trib
    Jul 10, 2023 @ 15:24
    Peter Kvayt
    0

    Detect type of ContentPublishedNotification

    Hi!

    Is there a way to determine what exactly triggered publishing: "Save and Publish", "Publish with descendants", "Post with Descendants includes unpublished content items" or "Scheduled publication"?

    I trying to implement indexing, and I want to detect on publishing is published node was unpublished (then I have to reindex all descedants). But the main problem that when user use "Save and Publish" whole branch triggered in notification, but if user use other publishing option, then notification contains only published node.

    I don't want always reindex all descedants, so is there is a way to detect type of publishing?

    I know that we can use ...Publising notification to detect if notification contains unpublished node, then save it to state and use it in ...Published notification. But I don't like this approach.

    Regards.

Please Sign in or register to post replies

Write your reply to:

Draft