mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-23 04:43:35 +08:00
Adding other forms of zone item
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4044314
This commit is contained in:
@@ -6,10 +6,10 @@ using Orchard.Models.ViewModels;
|
|||||||
namespace Orchard.UI.Zones {
|
namespace Orchard.UI.Zones {
|
||||||
public class ZoneCollection : Dictionary<string, ZoneEntry> {
|
public class ZoneCollection : Dictionary<string, ZoneEntry> {
|
||||||
public void AddRenderPartial(string location, string templateName, object model) {
|
public void AddRenderPartial(string location, string templateName, object model) {
|
||||||
|
AddZoneItem(location, new RenderPartialZoneItem() { Model = model, TemplateName = templateName });
|
||||||
}
|
}
|
||||||
public void AddDisplayItem(string location, ItemDisplayModel displayModel) {
|
public void AddDisplayItem(string location, ItemDisplayModel displayModel) {
|
||||||
|
AddZoneItem(location, new ItemDisplayZoneItem { DisplayModel = displayModel });
|
||||||
}
|
}
|
||||||
public void AddAction(string location, Action<HtmlHelper> action) {
|
public void AddAction(string location, Action<HtmlHelper> action) {
|
||||||
AddZoneItem(location, new DelegateZoneItem { Action = action });
|
AddZoneItem(location, new DelegateZoneItem { Action = action });
|
||||||
|
Reference in New Issue
Block a user