How to add a new button / link to the product list page in the admin area? I have a plugin that will generate an xml file from products in nop db and would like to add a button to this page for use by the admin user. Any ideas?
EDIT
Please note that I know that I can change Views\Product\List.cshtml to add additional html, but since I am writing a plugin, I cannot change the source code of the main application. In the past, I added new tabs to the Edit Product page by implementing IConsumer<AdminTabStripCreated> , and I was hoping there might be something like this. If it is not possible to enter any html in the product list, then I am open to suggestions for the next best. Perhaps a link to the navigation menu or something else?
EDIT 2
I just tried implementing IAdminMenuPlugin according to this Nop thread: http://www.nopcommerce.com/boards/t/21123/how-can-i-add-admin-menu-items-from-plugin.aspx
It doesn't seem to work. I even tried uninstalling and reinstalling the plugin.
From RouteProvider :
routes.MapRoute("Plugin.Widgets.ZapXml.Generate", "Plugins/ZapXml/Generate", new { controller = "ZapXml", action = "Generate" }, new[] { "Nop.Plugin.Widgets.ZapXml.Controllers" } );
From the plugin class (which inherits BasePlugin and IAdminMenuPlugin ):
public void BuildMenuItem(Telerik.Web.Mvc.UI.MenuItemBuilder menuItemBuilder) { menuItemBuilder.Text("Generate Zap XML File"); menuItemBuilder.Url("Plugins/ZapXml/Generate"); menuItemBuilder.Route("Plugin.Widgets.ZapXml.Generate"); }
I set a breakpoint in BuildMenuItem , but it never hits. What am I doing wrong?
source share