Make "Container" and "Owner" the last parts to show on the editor screen

--HG--
branch : dev
This commit is contained in:
Sebastien Ros
2010-07-20 14:44:47 -07:00
parent f97351ee59
commit b621af1a8a
2 changed files with 4 additions and 4 deletions

View File

@@ -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) { 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");
} }
} }
} }

View File

@@ -35,12 +35,12 @@ namespace Orchard.Comments.Drivers {
} }
protected override DriverResult Editor(HasComments part) { 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) { protected override DriverResult Editor(HasComments part, IUpdateModel updater) {
updater.TryUpdateModel(part, Prefix, null, null); updater.TryUpdateModel(part, Prefix, null, null);
return ContentPartTemplate(part, "Parts/Comments.HasComments").Location("primary", "99"); return ContentPartTemplate(part, "Parts/Comments.HasComments").Location("primary", "10");
} }
} }
} }