Adding other forms of zone item

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4044314
This commit is contained in:
loudej
2009-12-19 04:31:53 +00:00
parent 845a1cd9a3
commit 0733a742ad

View File

@@ -6,10 +6,10 @@ using Orchard.Models.ViewModels;
namespace Orchard.UI.Zones {
public class ZoneCollection : Dictionary<string, ZoneEntry> {
public void AddRenderPartial(string location, string templateName, object model) {
AddZoneItem(location, new RenderPartialZoneItem() { Model = model, TemplateName = templateName });
}
public void AddDisplayItem(string location, ItemDisplayModel displayModel) {
AddZoneItem(location, new ItemDisplayZoneItem { DisplayModel = displayModel });
}
public void AddAction(string location, Action<HtmlHelper> action) {
AddZoneItem(location, new DelegateZoneItem { Action = action });