Click or drag to resize

NotificationsFrontendAfterLoad Field

Occurs after the module has processed the request.

Namespace:  Dynamicweb.News
Assembly:  Dynamicweb.News (in Dynamicweb.News.dll) Version: 1.0.10
Syntax
public const string AfterLoad = "DWN_MODULES_NEWSV2_FRONTEND_AFTERLOAD"

Field Value

Type: String
Remarks
Examples
Example
[Dynamicweb.Extensibility.Subscribe(Dynamicweb.Notifications.NewsV2.Frontend.AfterLoad)]
    public class NewsV2AfterLoadObserver : 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;

            //Todo: insert code here
        }
    }
See Also