mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-02 11:44:41 +08:00
#18233: Making the Blog Posts draftable from the Migration
Work Item: 18233 --HG-- branch : 1.x
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Orchard.ContentManagement.MetaData;
|
||||
using Orchard.Core.Contents.Extensions;
|
||||
using Orchard.Data.Migration;
|
||||
|
||||
namespace Orchard.Blogs {
|
||||
@@ -61,6 +62,7 @@ namespace Orchard.Blogs {
|
||||
.WithSetting("AutorouteSettings.PatternDefinitions", "[{Name:'Blog and Title', Pattern: '{Content.Container.Path}/{Content.Slug}', Description: 'my-blog/my-post'}]")
|
||||
.WithSetting("AutorouteSettings.DefaultPatternIndex", "0"))
|
||||
.WithPart("BodyPart")
|
||||
.Draftable()
|
||||
);
|
||||
|
||||
ContentDefinitionManager.AlterTypeDefinition("RecentBlogPosts",
|
||||
|
||||
Reference in New Issue
Block a user