Content Items and Content Types are now tabs under one 'Content' menu item. #adminflattening

--HG--
branch : dev
This commit is contained in:
Dave Reed
2011-03-10 17:04:34 -08:00
parent e29bda40af
commit a8e8bc2279
2 changed files with 3 additions and 3 deletions

View File

@@ -22,8 +22,8 @@ namespace Orchard.Core.Contents {
var contentTypeDefinitions = _contentDefinitionManager.ListTypeDefinitions().OrderBy(d => d.Name);
builder.AddImageSet("content")
.Add(T("Content"), "2",
menu => menu.Add(T("Content Items"), "1", item => item.Action("List", "Admin", new {area = "Contents", id = ""})));
.Add(T("Content"), "2", menu => menu
.Add(T("Content Items"), "1", item => item.Action("List", "Admin", new { area = "Contents", id = "" }).LocalNav()));
var contentTypes = contentTypeDefinitions.Where(ctd => ctd.Settings.GetModel<ContentTypeSettings>().Creatable).OrderBy(ctd => ctd.DisplayName);
if (contentTypes.Count() > 0) {