public override void Add() { var contentFolderId = ContentTypes.CreateFolder("Aub.Comments"); ContentTypes.Create("pageComments_test", new ContentTypeInfo() { MasterId = contentFolderId, Name = "Page Comments_test", Master = "Elements", AllowAtRoot = false, Description = "Adds the option for commenting to the page", Icon = "icon-chat-active", Tabs = new List <ContentTypeTab>() { new ContentTypeTab() { TabName = "Comments", SortOrder = 160, Properties = new List <ContentTypeProperty>() { new ContentTypeProperty { Alias = "allowComments", Name = "Allow Comments", DataType = "CommentsSwitch", Description = "turn comments on or off for the page", SortOrder = 0, }, new ContentTypeProperty { Alias = "comments", Name = "Comments", DataType = "CommentsEditor", Description = "View of comments", SortOrder = 1 } } } } }); }
public override void Add() { var folderId = ContentTypes.CreateFolder("Aub.Blog"); ContentTypes.CreateFromFolder("~/App_Data/Aubergine/Blog/DocumentType/", folderId); }