#18233: Making the Blog Posts draftable from the Migration

Work Item: 18233

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2012-02-27 12:03:18 -08:00
parent f3b39e3a4f
commit e9df59291c

View File

@@ -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",