Notifications Class |
Namespace: Dynamicweb.News
The Notifications type exposes the following members.
Name | Description | |
---|---|---|
Notifications | Initializes a new instance of the Notifications class |
Name | Description | |
---|---|---|
CategoryDeleted | Occurs after the news category has been deleted. | |
CategorySaved | Occurs after the news category has been saved. | |
ItemDeleted | Occurs after the news item has been deleted. | |
ItemSaved | Occurs after the news item has been saved. | |
ItemSaving | Occurs before the news item has been saved. |
[Dynamicweb.Extensibility.Subscribe(Dynamicweb.Notifications.NewsV2.Frontend.BeforeLoad)] public class NewsV2BeforeLoadNotification : Dynamicweb.Extensibility.NotificationSubscriber { public override void OnNotify(string notification, object[] args) { Dynamicweb.NewsV2.Extensibility.NewsItemNotificationArgs arg = (Dynamicweb.NewsV2.Extensibility.NewsItemNotificationArgs)args[0]; //Todo: insert your code here } }