Class PageDataExtensions
Extension methods for Page
Inheritance
System.Object
PageDataExtensions
Namespace: EPiServer.Core
Assembly: EPiServer.Cms.AspNetCore.HtmlHelpers.dll
Version: 12.0.3Syntax
public static class PageDataExtensions : Object
Methods
GetPageLanguage(PageData, String)
Get a page in the requested language.
Declaration
public static PageData GetPageLanguage(this PageData page, string languageBranchId)
Parameters
Type | Name | Description |
---|---|---|
Page |
page | The page |
System. |
languageBranchId | The language branch id. |
Returns
Type | Description |
---|---|
Page |
Page |
HasTemplate(PageData)
Determines whether the specified content data has template.
Declaration
public static bool HasTemplate(this PageData pageData)
Parameters
Type | Name | Description |
---|---|---|
Page |
pageData | The page data. |
Returns
Type | Description |
---|---|
System. |
|
IsVisibleOnSite(PageData)
Determines whether the specified content data is visible on site.
Declaration
public static bool IsVisibleOnSite(this PageData page)
Parameters
Type | Name | Description |
---|---|---|
Page |
page | The page data. |
Returns
Type | Description |
---|---|
System. |
|