mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 10:54:50 +08:00
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:
36
src/Orchard.Web/Modules/Orchard.Experimental/Migrations.cs
Normal file
36
src/Orchard.Web/Modules/Orchard.Experimental/Migrations.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
@@ -6,6 +6,9 @@ Version: 0.8.0
|
||||
OrchardVersion: 0.8.0
|
||||
Description:
|
||||
Features:
|
||||
Orchard.Experimental:
|
||||
Description: An assortment of debugging tools.
|
||||
Category: Developer
|
||||
Profiling:
|
||||
Description: Tools to help profile Orchard.
|
||||
Category: Developer
|
||||
@@ -13,6 +16,7 @@ Features:
|
||||
Orchard.Experimental.WebCommandLine:
|
||||
Description: Enables site administrators to execute Orchard.exe commands via web interface
|
||||
Category: Developer
|
||||
Orchard.Experimental:
|
||||
Description: An assortment of debugging tools.
|
||||
Orchard.Experimental.TestingLists:
|
||||
Description: Adds some content definitions to help test lists
|
||||
Dependencies: Orchard.Lists
|
||||
Category: Developer
|
||||
|
@@ -80,6 +80,7 @@
|
||||
<Compile Include="Controllers\MetadataController.cs" />
|
||||
<Compile Include="DebugFilter.cs" />
|
||||
<Compile Include="Handlers\DebugLinkHandler.cs" />
|
||||
<Compile Include="Migrations.cs" />
|
||||
<Compile Include="Models\ShowDebugLink.cs" />
|
||||
<Compile Include="Models\Simple.cs" />
|
||||
<Compile Include="Permissions.cs" />
|
||||
|
Reference in New Issue
Block a user