Some work on the Containers front end. Creating a default page size site setting for containers.

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-11-09 16:00:51 -08:00
parent 9bf3368b25
commit 48f803b082
9 changed files with 88 additions and 11 deletions

View File

@@ -1,5 +1,4 @@
using System;
using Orchard.ContentManagement.MetaData;
using Orchard.ContentManagement.MetaData;
using Orchard.Core.Contents.Extensions;
using Orchard.Data.Migration;
@@ -14,6 +13,11 @@ namespace Orchard.Core.Containers {
.Column<string>("OrderByProperty")
.Column<int>("OrderByDirection"));
SchemaBuilder.CreateTable("ContainerSettingsPartRecord", table => table
.ContentPartRecord()
.Column<int>("DefaultPageSize", column => column.WithDefault(10))
);
ContentDefinitionManager.AlterPartDefinition("ContainerPart", builder => builder.Attachable());
ContentDefinitionManager.AlterPartDefinition("ContainablePart", builder => builder.Attachable());