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 |
---|---|---|
Page |
pageLink | The link to the page which will be conversion will start |
Page |
fromPageType | The page type to convert from |
Page |
toPageType | Type page type to convert to |
System. |
propertyTypeMap | "from"-"to" mappings of properties , the mapped properties has to be on the same base form |
System. |
recursive | if set to |
System. |
isTest | if set to |
Returns
Type | Description |
---|---|
System. |
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 |
---|---|---|
Page |
pageLink | The link to the page which will be conversion will start |
Page |
fromPageType | The page type to convert from |
Page |
toPageType | Type page type to convert to |
System. |
propertyTypeMap | "from"-"to" mappings of properties , the mapped properties has to be on the same base form |
System. |
recursive | if set to |
System. |
isTest | if set to |
IContent |
contentRepository | The IContent |
Returns
Type | Description |
---|---|
System. |