November Happy Hour will be moved to Thursday December 5th.

Class LoadCurrentPage

Default implementation of the ICurrentPage interface, giving support for loading the current page data.

Inheritance
System.Object
LoadCurrentPage
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web.PageExtensions
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
[PagePlugIn("LoadCurrentPage", "Support for loading the current page.", SortIndex = 1)]
public class LoadCurrentPage : ICurrentPage

Constructors

LoadCurrentPage()

Initializes a new instance of the LoadCurrentPage class.

Declaration
public LoadCurrentPage()

Properties

CurrentPage

Gets or sets the current EPiServer page.

Declaration
public virtual PageData CurrentPage { get; set; }
Property Value
Type Description
PageData

The current EPiServer page.

EnableLoadPageWithoutTemplate

Gets or sets a value indicating whether is should be possible to load a page that should not be visible on the public site. The class checks if the loaded PageData has a template.

Declaration
public bool EnableLoadPageWithoutTemplate { get; set; }
Property Value
Type Description
System.Boolean

true if pages without template should be able to load; otherwise, false.

Remarks

Default value is false. If this setting is set to false and a page is loaded that has does not have a template a 404 will be rendered to the browser.

EnableMasterLanguageFallback

Gets or sets a value indicating whether master language fallback should be enabled when loading pages.

Declaration
public bool EnableMasterLanguageFallback { get; set; }
Property Value
Type Description
System.Boolean

true if master language fallback should be enabled when loading pages; otherwise, false.

OptionFlag

Flag value to determine if this plug in should be enabled.

Declaration
public static int OptionFlag { get; }
Property Value
Type Description
System.Int32

Page

Gets or sets the executing page.

Declaration
public PageBase Page { get; }
Property Value
Type Description
PageBase

The executing page.

SelectionSource

Gets what selection source was used when selecting the language.

Declaration
public LanguageSelectionSource SelectionSource { get; }
Property Value
Type Description
LanguageSelectionSource

Methods

Attach(PageBase)

Attach to a PageBase class.

Declaration
public void Attach(PageBase page)
Parameters
Type Name Description
PageBase page

The page to attach to.

Initialize(Int32)

Method called at system startup to initialize this plug in.

Declaration
public static void Initialize(int optionFlag)
Parameters
Type Name Description
System.Int32 optionFlag

The option flag value assigned to this plug in.

Remarks

Using the plugin attribute [PagePlugIn] requires the class to contain a static void method named "Initialize" which will be called to attach to suitable event handlers.

Implements

Extension Methods