From d8342b9776e2747b30901f48b95ee1d1bc50419e Mon Sep 17 00:00:00 2001 From: Nathan Heskew Date: Wed, 22 Sep 2010 11:36:39 -0700 Subject: [PATCH] Re-enabling the rest of what was disabled in the SetupService - also tossed out some Orchard.Comments specific code --HG-- branch : dev --- .../Orchard.Setup/Services/SetupService.cs | 25 ++++++++----------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/src/Orchard.Web/Modules/Orchard.Setup/Services/SetupService.cs b/src/Orchard.Web/Modules/Orchard.Setup/Services/SetupService.cs index ff4291712..c36d89e07 100644 --- a/src/Orchard.Web/Modules/Orchard.Setup/Services/SetupService.cs +++ b/src/Orchard.Web/Modules/Orchard.Setup/Services/SetupService.cs @@ -76,7 +76,7 @@ namespace Orchard.Setup.Services { "Navigation", "Scheduling", "Indexing", - //"Localization", + "Localization", "Routable", "Settings", "XmlRpc", @@ -197,20 +197,20 @@ namespace Orchard.Setup.Services { //hackInstallationGenerator.GenerateInstallEvents(); var contentDefinitionManager = environment.Resolve(); - //contentDefinitionManager.AlterTypeDefinition("BlogPost", cfg => cfg - // .WithPart("CommentsPart") - // .WithPart("TagsPart") - // .WithPart("LocalizationPart") - // .Indexed() - // ); + contentDefinitionManager.AlterTypeDefinition("BlogPost", cfg => cfg + .WithPart("CommentsPart") + .WithPart("TagsPart") + .WithPart("LocalizationPart") + .Indexed() + ); contentDefinitionManager.AlterTypeDefinition("Page", cfg => cfg .WithPart("CommonPart") - //.WithPart("PublishLaterPart") + .WithPart("PublishLaterPart") .WithPart("RoutePart") .WithPart("BodyPart") - //.WithPart("CommentsPart") - //.WithPart("TagsPart") - //.WithPart("LocalizationPart") + .WithPart("CommentsPart") + .WithPart("TagsPart") + .WithPart("LocalizationPart") .Creatable() .Indexed() ); @@ -224,9 +224,6 @@ namespace Orchard.Setup.Services { page.As().Path = "home"; page.As().Title = T("Home").ToString(); page.As().Owner = user; - //if (page.Has()) { - // page.As().CommentsShown = false; - //} contentManager.Publish(page); siteSettings.Record.HomePage = "RoutableHomePageProvider;" + page.Id;