mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-22 20:13:50 +08:00
Converting ItemDisplayModel's Displays collection into a Zones collection. Changing display item templates to use Zone helpers.
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4044547
This commit is contained in:
@@ -16,7 +16,7 @@ namespace Orchard.Core.Common.Providers {
|
||||
|
||||
OnGetDisplayViewModel<BodyAspect>((context, body) => {
|
||||
var model = new BodyDisplayViewModel { BodyAspect = body };
|
||||
context.AddDisplay(new TemplateViewModel(model, TemplatePrefix) { TemplateName = TemplateName });
|
||||
context.AddDisplay(new TemplateViewModel(model, TemplatePrefix) { TemplateName = TemplateName, ZoneName = "body" });
|
||||
});
|
||||
|
||||
OnGetEditorViewModel<BodyAspect>((context, body) => {
|
||||
|
Reference in New Issue
Block a user