NotificationsFrontendBeforeLoad Field |
Namespace: Dynamicweb.News
[Dynamicweb.Extensibility.Subscribe(Dynamicweb.Notifications.NewsV2.Frontend.BeforeLoad)] public class NewsV2BeforeLoadObserver : Dynamicweb.Extensibility.NotificationSubscriber { public override void OnNotify(string notification, Dynamicweb.Extensibility.NotificationArgs args) { if (args == null || !(args is Dynamicweb.NewsV2.Extensibility.FrontendNotificationArgs)) return; Dynamicweb.NewsV2.Extensibility.FrontendNotificationArgs item = (Dynamicweb.NewsV2.Extensibility.FrontendNotificationArgs)args; item.ModuleInstance.Pageview.Meta.Add("newsv2-meta-tag","hello"); } }