-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAdminMenu.cs
27 lines (25 loc) · 928 Bytes
/
AdminMenu.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using Orchard;
using Orchard.Security;
using Orchard.UI.Navigation;
namespace IDeliverable.Slides
{
public class AdminMenu : Component, INavigationProvider
{
public string MenuName
{
get { return "admin"; }
}
public void GetNavigation(NavigationBuilder builder)
{
builder.Add(T("Settings"),
menu => menu
.Add(T("Slides"), "7", slides => slides
.Action("Index", "SlideshowProfile", new { area = "IDeliverable.Slides" })
.Permission(StandardPermissions.SiteOwner)
.Add(T("Profiles"), "1", profiles => profiles
.Action("Index", "SlideshowProfile", new { area = "IDeliverable.Slides" })
.Permission(StandardPermissions.SiteOwner)
.LocalNav())));
}
}
}