mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
- Basic persistency for the widget/layer parts.
--HG-- branch : dev
This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
using JetBrains.Annotations;
|
||||||
|
using Orchard.ContentManagement.Handlers;
|
||||||
|
using Orchard.Data;
|
||||||
|
using Orchard.Widgets.Models;
|
||||||
|
|
||||||
|
namespace Orchard.Widgets.Handlers {
|
||||||
|
[UsedImplicitly]
|
||||||
|
public class LayerPartHandler : ContentHandler {
|
||||||
|
public LayerPartHandler(IRepository<LayerPartRecord> layersRepository) {
|
||||||
|
Filters.Add(StorageFilter.For(layersRepository));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
using JetBrains.Annotations;
|
||||||
|
using Orchard.ContentManagement.Handlers;
|
||||||
|
using Orchard.Data;
|
||||||
|
using Orchard.Widgets.Models;
|
||||||
|
|
||||||
|
namespace Orchard.Widgets.Handlers {
|
||||||
|
[UsedImplicitly]
|
||||||
|
public class WidgetPartHandler : ContentHandler {
|
||||||
|
public WidgetPartHandler(IRepository<WidgetPartRecord> widgetsRepository) {
|
||||||
|
Filters.Add(StorageFilter.For(widgetsRepository));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -59,6 +59,8 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="AdminMenu.cs" />
|
<Compile Include="AdminMenu.cs" />
|
||||||
<Compile Include="Controllers\AdminController.cs" />
|
<Compile Include="Controllers\AdminController.cs" />
|
||||||
|
<Compile Include="Handlers\LayerPartHandler.cs" />
|
||||||
|
<Compile Include="Handlers\WidgetPartHandler.cs" />
|
||||||
<Compile Include="Models\Layer.cs" />
|
<Compile Include="Models\Layer.cs" />
|
||||||
<Compile Include="Models\LayerPart.cs" />
|
<Compile Include="Models\LayerPart.cs" />
|
||||||
<Compile Include="Models\LayerPartRecord.cs" />
|
<Compile Include="Models\LayerPartRecord.cs" />
|
||||||
@@ -78,7 +80,6 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Folder Include="App_Data\" />
|
<Folder Include="App_Data\" />
|
||||||
<Folder Include="Handlers\" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\..\Core\Orchard.Core.csproj">
|
<ProjectReference Include="..\..\Core\Orchard.Core.csproj">
|
||||||
|
|||||||
Reference in New Issue
Block a user