Adding experimental content types

Adds containable to "Page"
Create a basic "List Item" for testing Containers/Lists

--HG--
branch : dev
This commit is contained in:
Louis DeJardin
2010-11-08 15:37:24 -08:00
parent 2993f015a5
commit 69a6078346
3 changed files with 43 additions and 2 deletions

View File

@@ -0,0 +1,36 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Orchard.ContentManagement.MetaData;
using Orchard.Core.Contents.Extensions;
using Orchard.Data.Migration;
using Orchard.Environment.Extensions;
namespace Orchard.Experimental {
[OrchardFeature("Orchard.Experimental.TestingLists")]
public class TestingListsMigrations : DataMigrationImpl {
public int Create() {
ContentDefinitionManager.AlterTypeDefinition("ListItem",
cfg => cfg
.WithPart("CommonPart")
.WithPart("RoutePart")
.WithPart("BodyPart")
.WithPart("ContainablePart")
.Creatable());
ContentDefinitionManager.AlterTypeDefinition("Page",
cfg => cfg
.WithPart("ContainablePart"));
//ContentDefinitionManager.AlterTypeDefinition("ListWidget",
// cfg => cfg
// .WithPart("CommonPart")
// .WithPart("WidgetPart")
// .WithPart("ListWidgetPart")
// .WithSetting("Stereotype", "Widget"));
return 1;
}
}
}

View File

@@ -6,6 +6,9 @@ Version: 0.8.0
OrchardVersion: 0.8.0 OrchardVersion: 0.8.0
Description: Description:
Features: Features:
Orchard.Experimental:
Description: An assortment of debugging tools.
Category: Developer
Profiling: Profiling:
Description: Tools to help profile Orchard. Description: Tools to help profile Orchard.
Category: Developer Category: Developer
@@ -13,6 +16,7 @@ Features:
Orchard.Experimental.WebCommandLine: Orchard.Experimental.WebCommandLine:
Description: Enables site administrators to execute Orchard.exe commands via web interface Description: Enables site administrators to execute Orchard.exe commands via web interface
Category: Developer Category: Developer
Orchard.Experimental: Orchard.Experimental.TestingLists:
Description: An assortment of debugging tools. Description: Adds some content definitions to help test lists
Dependencies: Orchard.Lists
Category: Developer Category: Developer

View File

@@ -80,6 +80,7 @@
<Compile Include="Controllers\MetadataController.cs" /> <Compile Include="Controllers\MetadataController.cs" />
<Compile Include="DebugFilter.cs" /> <Compile Include="DebugFilter.cs" />
<Compile Include="Handlers\DebugLinkHandler.cs" /> <Compile Include="Handlers\DebugLinkHandler.cs" />
<Compile Include="Migrations.cs" />
<Compile Include="Models\ShowDebugLink.cs" /> <Compile Include="Models\ShowDebugLink.cs" />
<Compile Include="Models\Simple.cs" /> <Compile Include="Models\Simple.cs" />
<Compile Include="Permissions.cs" /> <Compile Include="Permissions.cs" />