IMPORTANT: This version of Sitefinity CMS is out of support and the respective product documentation is no longer maintained and can be outdated. Use the version selector to view a supported product version.
The following articles describes the events exposed by pages in Sitefinity.
This interface is implemented by all events which fire when a page in the site is accessed by an unauthorized user. There's only one such built-in event, but you should always subscribe using the interface rather than the class that implements it. Use the following code to subscribe.
EventHub.Subscribe<IUnauthorizedPageAccessEvent>(evt => IUnauthorizedPageAccessEventHandler(evt));
public
void
IUnauthorizedPageAccessEventHandler(IUnauthorizedPageAccessEvent eventInfo)
{
var currentContext = eventInfo.HttpContext;
var page = eventInfo.Page;
var redirectStrategyType = eventInfo.RedirectStrategy;
var redirectUrl = eventInfo.RedirectUrl;
}
EventHub.Subscribe<IPagePreRenderCompleteEvent>(
this
.OnPagePreRenderCompleteEventHandler);
private
OnPagePreRenderCompleteEventHandler(IPagePreRenderCompleteEvent evt)
if
(evt.PageSiteNode.IsBackend)
evt.PageSiteNode.ShowInNavigation =
false
;
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important