mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 03:25:23 +08:00
Making BlogPost and Page types "draftable" by default
--HG-- branch : dev
This commit is contained in:
@@ -218,6 +218,7 @@ namespace Orchard.Setup.Services {
|
||||
.WithPart("CommentsPart")
|
||||
.WithPart("TagsPart")
|
||||
.WithPart("LocalizationPart")
|
||||
.Draftable()
|
||||
.Indexed()
|
||||
);
|
||||
contentDefinitionManager.AlterTypeDefinition("Page", cfg => cfg
|
||||
@@ -228,6 +229,7 @@ namespace Orchard.Setup.Services {
|
||||
.WithPart("TagsPart")
|
||||
.WithPart("LocalizationPart")
|
||||
.Creatable()
|
||||
.Draftable()
|
||||
.Indexed()
|
||||
);
|
||||
contentDefinitionManager.AlterPartDefinition("BodyPart", cfg => cfg
|
||||
|
Reference in New Issue
Block a user