- Solution
- VB.Net Class library
- JS Directory
- MyJsFile.js
- CookieNotificationNotificationSubscriber.vb
This last file contains the following small piece of code. And i've added the references to Dynamicweb.dll, Dynamicweb.Admin.dll, Dynamicweb.Controls.dll and Dynamicweb.Diff.dll. In the reference section of the projectproperties I've selected Dynamicweb.Notifications as an Imported namespace, but this doesn't help
Imports Dynamicweb.Frontend Imports Dynamicweb.Extensibility Imports Dynamicweb 'The line below gives an error saying 'Cannot resolve symbol notifications' <Subscribe(Dynamicweb.Notifications.Standard.Page.PageTitle)> _ Public Class CookieNotificationNotificationSubscriber Inherits NotificationSubscriber Public Overrides Sub OnNotify(ByVal notification As String, ByVal args As Object()) Dim pageView As PageView = TryCast(args(0), PageView) pageView.AddJavascript("Js/cookie-settings.js") End Sub End Class