mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-24 05:42:10 +08:00
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045257
14 lines
618 B
C#
14 lines
618 B
C#
using Orchard.UI.Navigation;
|
|
|
|
namespace Orchard.Blogs {
|
|
public class AdminMenu : INavigationProvider {
|
|
public string MenuName { get { return "admin"; } }
|
|
|
|
public void GetNavigation(NavigationBuilder builder) {
|
|
builder.Add("Blogs", "2",
|
|
menu => menu
|
|
.Add("Manage Blogs", "1.0", item => item.Action("List", "BlogAdmin", new { area = "Orchard.Blogs" }))
|
|
.Add("Add New Blog", "1.1", item => item.Action("Create", "BlogAdmin", new { area = "Orchard.Blogs" })));
|
|
}
|
|
}
|
|
} |