From b621af1a8a409ab93c16c6a4a56b5d2e6f88fe43 Mon Sep 17 00:00:00 2001 From: Sebastien Ros Date: Tue, 20 Jul 2010 14:44:47 -0700 Subject: [PATCH] Make "Container" and "Owner" the last parts to show on the editor screen --HG-- branch : dev --- src/Orchard.Web/Core/Common/Drivers/CommonDriver.cs | 4 ++-- .../Modules/Orchard.Comments/Drivers/HasCommentsDriver.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Orchard.Web/Core/Common/Drivers/CommonDriver.cs b/src/Orchard.Web/Core/Common/Drivers/CommonDriver.cs index 84c71fc20..89dbb5b5b 100644 --- a/src/Orchard.Web/Core/Common/Drivers/CommonDriver.cs +++ b/src/Orchard.Web/Core/Common/Drivers/CommonDriver.cs @@ -79,7 +79,7 @@ namespace Orchard.Core.Common.Drivers { } } - return ContentPartTemplate(model, "Parts/Common.Owner", TemplatePrefix).Location("primary", "10"); + return ContentPartTemplate(model, "Parts/Common.Owner", TemplatePrefix).Location("primary", "20"); } DriverResult ContainerEditor(CommonAspect part, IUpdateModel updater) { @@ -106,7 +106,7 @@ namespace Orchard.Core.Common.Drivers { } } } - return ContentPartTemplate(model, "Parts/Common.Container", TemplatePrefix).Location("primary", "10.1"); + return ContentPartTemplate(model, "Parts/Common.Container", TemplatePrefix).Location("primary", "20.1"); } } } \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.Comments/Drivers/HasCommentsDriver.cs b/src/Orchard.Web/Modules/Orchard.Comments/Drivers/HasCommentsDriver.cs index de1f5bcbd..ac4ceb686 100644 --- a/src/Orchard.Web/Modules/Orchard.Comments/Drivers/HasCommentsDriver.cs +++ b/src/Orchard.Web/Modules/Orchard.Comments/Drivers/HasCommentsDriver.cs @@ -35,12 +35,12 @@ namespace Orchard.Comments.Drivers { } protected override DriverResult Editor(HasComments part) { - return ContentPartTemplate(part, "Parts/Comments.HasComments").Location("primary", "99"); + return ContentPartTemplate(part, "Parts/Comments.HasComments").Location("primary", "10"); } protected override DriverResult Editor(HasComments part, IUpdateModel updater) { updater.TryUpdateModel(part, Prefix, null, null); - return ContentPartTemplate(part, "Parts/Comments.HasComments").Location("primary", "99"); + return ContentPartTemplate(part, "Parts/Comments.HasComments").Location("primary", "10"); } } } \ No newline at end of file