Changed new content types to be part-free on creation

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-07-07 11:47:18 -07:00
parent 9597712701
commit 8da1423511

View File

@@ -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);
}