Class CreatePageData
Static helper class with methods that is used to construct PageData objects.
Inheritance
Inherited Members
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 8.11.0Syntax
[Obsolete("Use EPiServer.Construction.IContentDataFactory<PageData> instead")]
public static class CreatePageData
Methods
AddBasePageData(PageData, PageType, PageReference)
Initializes the PageData object with the default metadata properties.
Declaration
public static void AddBasePageData(PageData pageData, PageType pageType, PageReference parentPageLink)
Parameters
Type | Name | Description |
---|---|---|
PageData | pageData | The PageData object to fill with information. |
PageType | pageType | Type of the page. |
PageReference | parentPageLink | The parent of this page. |
Remarks
This method is primarily intended for EPiServer internal use.
AddDefaultPageData(PageData, PageType)
Sets default property values based on the page type.
Declaration
[Obsolete("Use PageData.SetDefaultValues(PageType pageType) instead.", false)]
public static void AddDefaultPageData(PageData pageData, PageType pageType)
Parameters
Type | Name | Description |
---|---|---|
PageData | pageData | An instantiated PageData object. |
PageType | pageType | The type of this page. |
Remarks
This method is primarily intended for EPiServer internal use.
AddInheritedPageData(PageData, PageType)
Sets data from parent page for properties that inherit data from parent.
Declaration
public static void AddInheritedPageData(PageData pageData, PageType pageType)
Parameters
Type | Name | Description |
---|---|---|
PageData | pageData | The PageData object to update. |
PageType | pageType | The type of this page. |
Remarks
This method is primarily intended for EPiServer internal use.
AddPageTypeProperties(PageData, PageType)
Inserts properties defined for the given page type into page data.
Declaration
public static void AddPageTypeProperties(PageData pageData, PageType pageType)
Parameters
Type | Name | Description |
---|---|---|
PageData | pageData | The PageData object to update |
PageType | pageType | The type of the page. |
Remarks
This method is primarily intended for EPiServer internal use.
DefaultPageData(Int32, PageReference, ILanguageSelector)
Creates a default PageData with no existing language branches
Declaration
[Obsolete("Use the method public static PageData DefaultPageDataLanguage(int pageTypeID, PageReference parentPageLink, ILanguageSelector selector, IList<string> existingLanguages, IPageRepository pageRepository) instead.", false)]
public static PageData DefaultPageData(int pageTypeID, PageReference parentPageLink, ILanguageSelector selector)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pageTypeID | The page type ID. |
PageReference | parentPageLink | The parent page link. |
ILanguageSelector | selector | The selector. |
Returns
Type | Description |
---|---|
PageData |
DefaultPageDataLanguage(Int32, PageReference, ILanguageSelector, IList<String>)
Creates a default PageData as a new langauge branch
Declaration
[Obsolete("Use the overload public static PageData DefaultPageDataLanguage(int pageTypeID, PageReference parentPageLink, ILanguageSelector selector, IList<string> existingLanguages, IPageRepository pageRepository) instead.", false)]
public static PageData DefaultPageDataLanguage(int pageTypeID, PageReference parentPageLink, ILanguageSelector selector, IList<string> existingLanguages)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pageTypeID | The page type ID. |
PageReference | parentPageLink | The parent page link. |
ILanguageSelector | selector | The selector. |
System.Collections.Generic.IList<System.String> | existingLanguages | The existing languages. |
Returns
Type | Description |
---|---|
PageData |
DefaultPageDataLanguage(Int32, PageReference, ILanguageSelector, IList<String>, IContentRepository)
Creates a default PageData as a new langauge branch
Declaration
public static PageData DefaultPageDataLanguage(int pageTypeID, PageReference parentPageLink, ILanguageSelector selector, IList<string> existingLanguages, IContentRepository contentRepository)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pageTypeID | The page type ID. |
PageReference | parentPageLink | The parent page link. |
ILanguageSelector | selector | The selector. |
System.Collections.Generic.IList<System.String> | existingLanguages | The existing languages. |
IContentRepository | contentRepository | The IContentRepository to use |
Returns
Type | Description |
---|---|
PageData |
GetNextAvailableFolderID()
Create a unique folder in system upload directory
Declaration
public static int GetNextAvailableFolderID()
Returns
Type | Description |
---|---|
System.Int32 |