Adding Orchard.Pages and removing base Page type configuratino to said module

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-11-14 14:34:01 -08:00
parent ef4b657aa8
commit 12eccd479a
7 changed files with 183 additions and 9 deletions

View File

@@ -86,6 +86,7 @@ namespace Orchard.Setup.Services {
"Orchard.Roles",
"TinyMce",
"PackagingServices",
"Orchard.Pages",
"Orchard.Modules",
"Orchard.Themes",
"Orchard.PublishLater",
@@ -213,7 +214,7 @@ namespace Orchard.Setup.Services {
//hackInstallationGenerator.GenerateInstallEvents();
var contentDefinitionManager = environment.Resolve<IContentDefinitionManager>();
//todo: (heskew) pull these definitions (and initial content creation) out into more appropriate modules
//todo: (heskew) pull these definitions (and initial content creation) out into a distribution configuration when we have that capability
contentDefinitionManager.AlterTypeDefinition("BlogPost", cfg => cfg
.WithPart("CommentsPart")
.WithPart("TagsPart")
@@ -222,13 +223,8 @@ namespace Orchard.Setup.Services {
.Indexed()
);
contentDefinitionManager.AlterTypeDefinition("Page", cfg => cfg
.WithPart("CommonPart")
.WithPart("PublishLaterPart")
.WithPart("RoutePart")
.WithPart("BodyPart")
.WithPart("TagsPart")
.WithPart("LocalizationPart")
.Creatable()
.Draftable()
.Indexed()
);