Dynamicweb 8 Documentation
Standard.Page Class
Members  Example 

Provides notification names for pages.
Syntax
'Declaration
 
Public NotInheritable Class Standard.Page 
public sealed class Standard.Page 
Example
How to subscribe to the notifications in DynamicwebHow to subscribe to the notifications in Dynamicweb
namespace Dynamicweb.Examples.CSharp.Notifications.Standard
{
    [Extensibility.Subscribe(Dynamicweb.Notifications.Standard.Page.Loaded)]
    public class PageLoadedObserver : Dynamicweb.Extensibility.NotificationSubscriber
    {
        public override void OnNotify(string notification, Dynamicweb.Extensibility.NotificationArgs args)
        {
            if (args == null)            
                return;

            Dynamicweb.Notifications.Standard.Page.LoadedArgs loadedArgs = (Dynamicweb.Notifications.Standard.Page.LoadedArgs)args;
            //Adding Meta Tag to the PageView
            loadedArgs.pageview.Meta.Add("my-meta-tag", "hello");
        }
    }
}
Namespace Notifications.Standard
    <Extensibility.Subscribe(Global.Dynamicweb.Notifications.Standard.Page.Loaded)> _
    Public Class PageLoadedObserver
        Inherits Global.Dynamicweb.Extensibility.NotificationSubscriber

        Public Overrides Sub OnNotify(ByVal notification As String, ByVal args As Global.Dynamicweb.Extensibility.NotificationArgs)
            If args Is Nothing Then
                Return
            End If

            Dim loadedArgs As Global.Dynamicweb.Notifications.Standard.Page.LoadedArgs = DirectCast(args, Global.Dynamicweb.Notifications.Standard.Page.LoadedArgs)
            'Adding Meta Tag to the PageView
            loadedArgs.pageview.Meta.Add("my-meta-tag", "hello")
        End Sub
    End Class
End Namespace
Inheritance Hierarchy

System.Object
   Dynamicweb.Notifications.Standard.Page

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Standard.Page Members
Dynamicweb.Notifications Namespace

Send Feedback