-
Notifications
You must be signed in to change notification settings - Fork 21
/
AdminMenu.cs
18 lines (14 loc) · 930 Bytes
/
AdminMenu.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using Orchard.Localization;
using Orchard.UI.Navigation;
namespace WebAdvanced.Sitemap {
public class AdminMenu : INavigationProvider {
public Localizer T { get; set; }
public string MenuName { get { return "admin"; } }
public void GetNavigation(NavigationBuilder builder) {
builder.Add(T("Sitemap"), "9", menu => menu.Permission(Permissions.ManageSitemap)
.Add(T("Indexing"), "1", item => item.Action("Indexing", "Admin", new {area = "WebAdvanced.Sitemap"}).LocalNav().Permission(Permissions.ManageSitemap))
.Add(T("Display"), "2", item => item.Action("DisplaySettings", "Admin", new {area = "WebAdvanced.Sitemap"}).LocalNav().Permission(Permissions.ManageSitemap))
.Add(T("Cache"), "3", item => item.Action("Cache", "Admin", new { area = "WebAdvanced.Sitemap" }).LocalNav().Permission(Permissions.ManageSitemap)));
}
}
}