mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-24 13:33:34 +08:00
Bunch of work for containers.
- Ordering and paging on the container mostly hooked up. Paging needs to respect item settings. - Widget settings looking good but not yet functioning. Also need to add filtering. - Custom part not yet in place for custom ordering/filtering. --HG-- branch : dev
This commit is contained in:
@@ -6,12 +6,19 @@ 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"));
|
||||
table => table
|
||||
.ContentPartRecord()
|
||||
.Column<bool>("Paginated")
|
||||
.Column<int>("PageSize")
|
||||
.Column<string>("OrderByProperty")
|
||||
.Column<int>("OrderByDirection"));
|
||||
|
||||
ContentDefinitionManager.AlterTypeDefinition("ContainerWidget",
|
||||
cfg => cfg
|
||||
.WithPart("CommonPart")
|
||||
.WithPart("WidgetPart")
|
||||
.WithPart("ContainerWidgetPart")
|
||||
.WithSetting("Stereotype", "Widget"));
|
||||
|
||||
ContentDefinitionManager.AlterPartDefinition("ContainerPart", builder => builder.Attachable());
|
||||
ContentDefinitionManager.AlterPartDefinition("ContainablePart", builder => builder.Attachable());
|
||||
|
Reference in New Issue
Block a user