Reassembling* the admin content (management) list and content item edit

* edit partially on the new UI composition model

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-10-13 04:51:15 -07:00
parent ec7f111021
commit 14aef1985f
20 changed files with 206 additions and 113 deletions

View File

@@ -36,11 +36,14 @@ namespace Orchard.Core.Common.Drivers {
public IOrchardServices Services { get; set; }
protected override DriverResult Display(CommonPart part, string displayType, dynamic shapeHelper) {
var metadata = shapeHelper.Parts_Common_Metadata(ContentPart: part);
if (!string.IsNullOrWhiteSpace(displayType))
metadata.Metadata.Type = string.Format("{0}.{1}", metadata.Metadata.Type, displayType);
var location = part.GetLocation(displayType);
return ContentShape(metadata).Location(location);
return Combined(
ContentShape("Parts_Common_Metadata",
() => shapeHelper.Parts_Common_Metadata(ContentPart: part)),
ContentShape("Parts_Common_Metadata_Summary",
() => shapeHelper.Parts_Common_Metadata_Summary(ContentPart: part)),
ContentShape("Parts_Common_Metadata_SummaryAdmin",
() => shapeHelper.Parts_Common_Metadata_SummaryAdmin(ContentPart: part))
);
}
protected override DriverResult Editor(CommonPart part, dynamic shapeHelper) {