mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +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("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
|
||||||
|
Reference in New Issue
Block a user