mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16: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.ContentManagement.MetaData;
|
||||||
|
using Orchard.Core.Contents.Extensions;
|
||||||
using Orchard.Data.Migration;
|
using Orchard.Data.Migration;
|
||||||
|
|
||||||
namespace Orchard.Blogs {
|
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.PatternDefinitions", "[{Name:'Blog and Title', Pattern: '{Content.Container.Path}/{Content.Slug}', Description: 'my-blog/my-post'}]")
|
||||||
.WithSetting("AutorouteSettings.DefaultPatternIndex", "0"))
|
.WithSetting("AutorouteSettings.DefaultPatternIndex", "0"))
|
||||||
.WithPart("BodyPart")
|
.WithPart("BodyPart")
|
||||||
|
.Draftable()
|
||||||
);
|
);
|
||||||
|
|
||||||
ContentDefinitionManager.AlterTypeDefinition("RecentBlogPosts",
|
ContentDefinitionManager.AlterTypeDefinition("RecentBlogPosts",
|
||||||
|
|||||||
Reference in New Issue
Block a user