forked from smartstore/SmartStoreNET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAdminMenu.cs
More file actions
28 lines (24 loc) · 806 Bytes
/
Copy pathAdminMenu.cs
File metadata and controls
28 lines (24 loc) · 806 Bytes
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
28
using SmartStore.Collections;
using SmartStore.Web.Framework.UI;
namespace SmartStore.DevTools
{
public class AdminMenu : AdminMenuProvider
{
protected override void BuildMenuCore(TreeNode<MenuItem> pluginsNode)
{
var menuItem = new MenuItem().ToBuilder()
.Text("Developer Tools")
.Icon("code")
.Action("ConfigurePlugin", "Plugin", new { systemName = "SmartStore.DevTools", area = "Admin" })
.ToItem();
pluginsNode.Prepend(menuItem);
// uncomment to add to admin menu (see plugin sub-menu)
//var backendExtensionItem = new MenuItem().ToBuilder()
// .Text("Backend extension")
// .Icon("area-chart")
// .Action("BackendExtension", "DevTools", new { area = "SmartStore.DevTools" })
// .ToItem();
//pluginsNode.Append(backendExtensionItem);
}
}
}