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.
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.
is working on a reply...