Class PageTypeConverter
Converts page type for pages
Inheritance
Inherited Members
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 8.11.0Syntax
public static class PageTypeConverter
Methods
Convert(PageReference, PageType, PageType, List<KeyValuePair<Int32, Int32>>, Boolean, Boolean)
Convert a page to a new page type
Declaration
[Obsolete("Use the overload public static string Convert(PageReference pageLink, PageType fromPageType, PageType toPageType, List<KeyValuePair<int, int>> propertyTypeMap, bool recursive, bool isTest, IPageRepository pageRepository) instead.", false)]
public static string Convert(PageReference pageLink, PageType fromPageType, PageType toPageType, List<KeyValuePair<int, int>> propertyTypeMap, bool recursive, bool isTest)
Parameters
Type | Name | Description |
---|---|---|
PageReference | pageLink | The link to the page which will be conversion will start |
PageType | fromPageType | The page type to convert from |
PageType | toPageType | Type page type to convert to |
System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<System.Int32, System.Int32>> | propertyTypeMap | "from"-"to" mappings of properties , the mapped properties has to be on the same base form |
System.Boolean | recursive | if set to |
System.Boolean | isTest | if set to |
Returns
Type | Description |
---|---|
System.String |
Convert(PageReference, PageType, PageType, List<KeyValuePair<Int32, Int32>>, Boolean, Boolean, IContentRepository)
Convert a page to a new page type
Declaration
public static string Convert(PageReference pageLink, PageType fromPageType, PageType toPageType, List<KeyValuePair<int, int>> propertyTypeMap, bool recursive, bool isTest, IContentRepository contentRepository)
Parameters
Type | Name | Description |
---|---|---|
PageReference | pageLink | The link to the page which will be conversion will start |
PageType | fromPageType | The page type to convert from |
PageType | toPageType | Type page type to convert to |
System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<System.Int32, System.Int32>> | propertyTypeMap | "from"-"to" mappings of properties , the mapped properties has to be on the same base form |
System.Boolean | recursive | if set to |
System.Boolean | isTest | if set to |
IContentRepository | contentRepository | The IContentRepository instance to work with |
Returns
Type | Description |
---|---|
System.String |