Adding core Containers module

Container part used for content types that group child items together
Containable part provides UI to select which item is ContainerId

--HG--
branch : dev
This commit is contained in:
Louis DeJardin
2010-11-08 15:33:56 -08:00
parent 7e9c27433b
commit 8d1b0a7be7
10 changed files with 182 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
using System;
using Orchard.ContentManagement.MetaData;
using Orchard.Core.Contents.Extensions;
using Orchard.Data.Migration;
namespace Orchard.Core.Containers {
public class Migrations : DataMigrationImpl {
public int Create() {
SchemaBuilder.CreateTable("ContainerPartRecord",
table => table
.ContentPartRecord()
.Column<bool>("Paginated")
.Column<int>("PageSize")
.Column<string>("OrderByProperty")
.Column<int>("OrderByDirection"));
ContentDefinitionManager.AlterPartDefinition("ContainerPart", builder => builder.Attachable());
ContentDefinitionManager.AlterPartDefinition("ContainablePart", builder => builder.Attachable());
return 1;
}
}
}