Trying to add some new menu items as per here with the following code:
private void Add_MenuGroup()
{
Manager.Menu.Add(new Manager.MenuGroup()
{
InternalId = "HireModules",
Name = "Hire Modules",
CssClass = "fancy-icon"
});
}
private void Add_MenuItems()
{
Manager.Menu.Where(m => m.InternalId == "HireModules").Single().Items.Add(
new Manager.MenuItem()
{
Name = "Products",
Action = "productlist",
Controller = "products",
Permission = "ADMIN_PRODUCT",
SelectedActions = "productlist,productedit"
});
}
The calls to these methods are in the Global.asax.cs and are being called without error but no new items are being added. How do I fix this?
I can see the items in the list as well.