Making BlogPost and Page types "draftable" by default

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-11-04 15:25:16 -07:00
parent a60ce2141a
commit ec47091582

View File

@@ -218,6 +218,7 @@ namespace Orchard.Setup.Services {
.WithPart("CommentsPart") .WithPart("CommentsPart")
.WithPart("TagsPart") .WithPart("TagsPart")
.WithPart("LocalizationPart") .WithPart("LocalizationPart")
.Draftable()
.Indexed() .Indexed()
); );
contentDefinitionManager.AlterTypeDefinition("Page", cfg => cfg contentDefinitionManager.AlterTypeDefinition("Page", cfg => cfg
@@ -228,6 +229,7 @@ namespace Orchard.Setup.Services {
.WithPart("TagsPart") .WithPart("TagsPart")
.WithPart("LocalizationPart") .WithPart("LocalizationPart")
.Creatable() .Creatable()
.Draftable()
.Indexed() .Indexed()
); );
contentDefinitionManager.AlterPartDefinition("BodyPart", cfg => cfg contentDefinitionManager.AlterPartDefinition("BodyPart", cfg => cfg