Click or drag to resize

NotificationsFrontendBeforeSelectData Field

Occurs before the data which will be presented to the user is selected.

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

Field Value

Type: String
Remarks
Examples
Example
[Dynamicweb.Extensibility.Subscribe(Dynamicweb.Notifications.NewsV2.Frontend.BeforeSelectData)]
    public class NewsV2BeforeSelectDataObserver : Dynamicweb.Extensibility.NotificationSubscriber
    {
        public override void OnNotify(string notification, Dynamicweb.Extensibility.NotificationArgs args)
        {
            if (args == null || !(args is Dynamicweb.NewsV2.Extensibility.FrontendDataNotificationArgs))
                return;

            Dynamicweb.NewsV2.Extensibility.FrontendDataNotificationArgs item = (Dynamicweb.NewsV2.Extensibility.FrontendDataNotificationArgs)args;

            //Todo: insert code here
        }
    }
See Also