From 8da1423511574cfc9cf01b510e2734b58d692d67 Mon Sep 17 00:00:00 2001 From: Nathan Heskew Date: Wed, 7 Jul 2010 11:47:18 -0700 Subject: [PATCH] Changed new content types to be part-free on creation --HG-- branch : dev --- .../Services/ContentDefinitionService.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Orchard.Web/Modules/Orchard.ContentTypes/Services/ContentDefinitionService.cs b/src/Orchard.Web/Modules/Orchard.ContentTypes/Services/ContentDefinitionService.cs index fdfac77f1..07fded3a2 100644 --- a/src/Orchard.Web/Modules/Orchard.ContentTypes/Services/ContentDefinitionService.cs +++ b/src/Orchard.Web/Modules/Orchard.ContentTypes/Services/ContentDefinitionService.cs @@ -65,13 +65,7 @@ namespace Orchard.ContentTypes.Services { name = VersionName(name); var contentTypeDefinition = new ContentTypeDefinition(name, typeViewModel.DisplayName); - //just giving the new type some default parts for now _contentDefinitionManager.StoreTypeDefinition(contentTypeDefinition); - _contentDefinitionManager.AlterTypeDefinition( - contentTypeDefinition.Name, - cfg => cfg.WithPart("CommonAspect") - //.WithPart("RoutableAspect") //need to go the new routable route - .WithPart("BodyAspect")); return new EditTypeViewModel(contentTypeDefinition); }