Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I success to get the published cultures from "INotificationHandler ＜ContentPublishedNotification＞".
But how can I take it from "INotificationHandler＜ContentPublishingNotification＞"?
Thanks a lot
var unpublishingCultures = publishedItem.AvailableCultures.Where(culture => notification.HasUnpublishedCulture(publishedItem, culture)).ToList();
var publishingCultures = publishedItem.AvailableCultures.Where(culture => notification.HasPublishedCulture(publishedItem, culture)).ToList();
Hi Jacob, did you figured it out. I am looking for a solution on how to get the list of cultures selected while saveandpublish content in a publishedNotification.
There are Extension Helpers for ContentPublishingNotification and for ContentPublishedNotification, you can discover them here in the source:
So Looks like there is a helper for
IsPublishingCulture (when publishing) and HasPublishedCulture (when published)
So you can use these in either notification to check which of the Available Culture Is 'Publishing' or Has 'Published'.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted