Good day.
I’m trying to create my own plugin (using tutorials from this thread: https://www.nopcommerce.com/boards/t/11315/how-to-extending-nopcommerce-v20.aspx).
This is my register routes code:
------------
public void RegisterRoutes(System.Web.Routing.RouteCollection routes)
{
routes.MapRoute("Banners",
"Banners",
new { controller = "Banners", action = "Index" },
new[] { "Banners.Controllers" }
);
}
When I’m trying to see the Banners Index view in the my Web application, there are no any problems – the app can find the Banners controller and calls its Index action. Now I want to add the same view in the Admin area. This is part of SiteMap.xml:
<siteMapNode title="Banners" nopResource="Admin.ContentManagement.Banners" controller="Banners" action="Index" />
The menu item’s path is Admin/Banners, but when I’m clicking on it, I see the standard “The resource cannot be found” message, so, the Admin app can’t find the controller. What should I do to make my plugin visible in the Admin application? I’ve tried to change the Route path to Admin/Banners and move the plugin to the Admin’s Plugin folder – no result.
Thank you in advance,
Serge