Filtering the list of addable parts (when adding them to a type)

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-07-23 15:16:16 -07:00
parent e3a4b6fade
commit 9a353040cd
12 changed files with 56 additions and 5 deletions

View File

@@ -2,6 +2,7 @@
using Orchard.ContentManagement.Drivers;
using Orchard.ContentManagement.MetaData;
using Orchard.ContentManagement.MetaData.Builders;
using Orchard.Core.Contents.Extensions;
using Orchard.Core.Routable.Models;
using Orchard.Data.Migration;
@@ -28,5 +29,10 @@ namespace Orchard.Core.Routable.DataMigrations {
return 2;
}
public int UpdateFrom2() {
ContentDefinitionManager.AlterPartDefinition("RoutePart", builder => builder.Attachable());
return 3;
}
}
}