EPiServer.PageTypeTabs is a slightly modified version of Joshua Folkerts' PageTypeTabs for EPiServer. This version allows you to separate the page types within each tab into separate sections. This was developed and tested with EPiServer CMS 6 R2 and PageTypeBuilder 1.3.1.
-
Update the Virtual Path Mapping in episerver.config to point to the new CreateNewPage.aspx file.
-
Create your tabs similar to how you would create a PageTypeBuilder tab
public class MyPageTypeTab : PageTypeTab { public override string Name { get { return "My Tab"; } }
public override int SortIndex { get { return 100; } }
}
-
Add the PageTypeTab attribute to your PageType classes
[PageTypeTab(Tab = typeof(MyPageTypeTab), Section = "General Pages")] [PageType(Filename = "/MyPage.aspx", Name = "My Page")] public class MyPage : TypedPageData { }
The Section property can be any string. Page types with the same Section string will be grouped together. If a Section is not specified, it will be part of an unlabelled section.