mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
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:
@@ -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 ?? "");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user