Hi Thanks Jacob for this fast reply,
I also implemented the three method of IWidgetPlugin just like this :
public void GetConfigurationRoute(out string actionName, out string controllerName, out System.Web.Routing.RouteValueDictionary routeValues)
{
actionName = "ConfigureMenus";
controllerName = "Menu";
routeValues = new RouteValueDictionary(){
{ "Namespaces", "Ebm.Plugin.Widget.Menu.Controller" },
{ "area", null }
};
}
public void GetDisplayWidgetRoute(string widgetZone, out string actionName, out string controllerName, out System.Web.Routing.RouteValueDictionary routeValues)
{
actionName = "GetMenuById";
controllerName = "Menu";
routeValues = new RouteValueDictionary(){
{ "Namespaces", "Ebm.Plugin.Widget.Menu.Controller" },
{ "area", null },
{ "widgetZone", widgetZone}
};
}
public IList<string> GetWidgetZones()
{
return new List<string>() {
"ebm_MenuManager_BackOffice"
};
}
And the route is okay and i can display the widget with this call :
@Html.Action("ActionName", "ControllerName", new {RouteValues})
, And the matter that i want to do this call with @Html.Widget but the problem that this new widget zone wasn't described to the admin widget zone and for have an idea i look into the WidgetController and i saw that the following action WidgetByZone its not the same for the action in the Nop.Web's WidgetController ,
Any idea please about this ?
Best Regards.