Throwing in a "SummaryAdmin" equivalent

Need to enumerate display types
Adds a diagnostic <div> to devtools that wraps everything being rendered with it's shape name and location

--HG--
branch : theming
This commit is contained in:
Louis DeJardin
2010-09-09 19:23:06 -07:00
parent a03da9496a
commit 88535ed8c6
13 changed files with 76 additions and 15 deletions

View File

@@ -117,8 +117,13 @@ namespace Orchard.Core.Contents.Controllers {
var list = Shape.List();
list.AddRange(contentItems);
var list2 = Shape.List();
var items = contentItems.Select(ci=>_contentManager.BuildDisplayModel(ci, "SummaryAdmin"));
list2.AddRange(items);
var viewModel = Shape.ViewModel()
.ContentItems(list)
.ContentItems2(list2)
.Options(model.Options)
.TypeDisplayName(model.TypeDisplayName ?? "");