Try our conversational search powered by Generative AI!

Class PageController<T>

Provides the base implementation for for page controllers.

Inheritance
System.Object
PageController<T>
Namespace: EPiServer.Web.Mvc
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
[ViewedPageCriterion]
public abstract class PageController<T> : ContentController<T>, IRenderTemplate<T>, IRenderTemplate where T : PageData
Type Parameters
Name Description
T
Remarks

The PageControllerBase class is small, containing only a few methods and properties for handling three basic tasks:

  • Providing easy access to the IPageRouteHelper instance for the current request.
  • Support for handling actions that are not available in the controller.
  • Setting up the capability of impersonating visitor groups.

Constructors

PageController()

Declaration
protected PageController()

Properties

PageContext

Gets or sets a IPageRouteHelper which conveys information about the routed page.

Declaration
public virtual IPageRouteHelper PageContext { get; set; }
Property Value
Type Description
IPageRouteHelper
Remarks

The setter is only used to set up a mock PageRouteHelper object for testing purposes.

Implements

Extension Methods