#16903: Remove the Widget Page content type (and WidgetBagPart)

--HG--
branch : dev
This commit is contained in:
Dave Reed
2010-12-02 14:05:09 -08:00
parent 42b572f648
commit 625ad33476
4 changed files with 0 additions and 29 deletions

View File

@@ -1,13 +0,0 @@
using JetBrains.Annotations;
using Orchard.ContentManagement.Drivers;
using Orchard.Widgets.Models;
namespace Orchard.Widgets.Drivers {
[UsedImplicitly]
public class WidgetBagPartDriver : ContentPartDriver<WidgetBagPart> {
protected override DriverResult Editor(WidgetBagPart part, dynamic shapeHelper) {
return ContentShape("Parts_Widgets_WidegetBagPart",
() => shapeHelper.EditorTemplate(TemplateName: "Parts/Widgets.WidgetBagPart", Model: part, Prefix: Prefix));
}
}
}

View File

@@ -60,15 +60,6 @@ namespace Orchard.Widgets {
.WithSetting("Stereotype", "Widget")
);
ContentDefinitionManager.AlterTypeDefinition("WidgetPage",
cfg => cfg
.WithPart("CommonPart")
.WithPart("RoutePart")
.WithPart("WidgetBagPart")
.WithPart("MenuPart")
.Creatable()
);
return 1;
}
}

View File

@@ -1,5 +0,0 @@
using Orchard.ContentManagement;
namespace Orchard.Widgets.Models {
public class WidgetBagPart : ContentPart {}
}

View File

@@ -47,14 +47,12 @@
<Compile Include="AdminMenu.cs" />
<Compile Include="Controllers\AdminController.cs" />
<Compile Include="Drivers\LayerPartDriver.cs" />
<Compile Include="Drivers\WidgetBagPartDriver.cs" />
<Compile Include="Drivers\WidgetPartDriver.cs" />
<Compile Include="Migrations.cs" />
<Compile Include="Handlers\LayerPartHandler.cs" />
<Compile Include="Handlers\WidgetPartHandler.cs" />
<Compile Include="Models\LayerPart.cs" />
<Compile Include="Models\LayerPartRecord.cs" />
<Compile Include="Models\WidgetBagPart.cs" />
<Compile Include="Models\WidgetPart.cs" />
<Compile Include="Models\WidgetPartRecord.cs" />
<Compile Include="Permissions.cs" />