0

我想在管理页面中添加一个新菜单项。然而并没有成功。

我在我的项目中创建了 AdminMenu:

 public class AdminMenu : INavigationProvider 
     {
      public AdminMenu()
      {
        T = NullLocalizer.Instance;
       }
 private Localizer T { get; set; }
 public string MenuName { get { return "admin"; } }


 public void GetNavigation(NavigationBuilder builder)
   {
     builder.AddImageSet("UsedEquipProperty").Add(T("UsedEquipProperty"), "7",   BuildUsedEquipmentProperty);
   }
   private void BuildUsedEquipmentProperty(NavigationItemBuilder menu)
    {
     menu.Add(T("UsedEquipProperty"), "7.1", item => item.Action("Index",      "UsedEquipmentProperty", new { area = "MyModule"   }).Permission(Permissions.EditOwnContent));

     menu.Add(T("Create Property"), "7.2", item => item.Action("Create",   "UsedEquipmentProperty", new { area = "MyModule" }).Permission(Permissions.EditOwnContent));
}

我错过了什么吗?我在管理页面上看不到我添加的菜单项。

4

0 回答 0