简体   繁体   English

我无法在NopCommerce中为新的管理插件调用Widget

[英]I can't call Widget for a new Admin Plugin in NopCommerce

I Create a New plugin to manage back Office menus, 我创建了一个新插件来管理后台Office菜单,

I implement the interface IWidgetPlugin to create a new widget zone : 我实现IWidgetPlugin接口以创建一个新的小部件区域:

public IList<string> GetWidgetZones()
{
     return new List<string>(){ 
         "ebm_MenuManager_BackOffice"
     };
}

And I had called this widget zone from one view "_AdminLayout.csHtml" under Nop.Admin project with the extended helper @Html.Widget 我已经在Nop.Admin项目下的一个视图“ _AdminLayout.csHtml”中使用扩展的帮助程序@ Html.Widget将此小部件区域称为“ _AdminLayout.csHtml”。

@Html.Widget("ebm_MenuManager_BackOffice")

how can i display my widget zone in this back office view with the widget call ? 如何通过小部件调用在此后台视图中显示小部件区域?

The problem is solved, for those who are interested please check this link from nopcommerce community wher i asked the same question : 问题已解决,对于那些有兴趣的人,请在我问同样的问题时从nopcommerce社区检查此链接:

http://www.nopcommerce.com/boards/t/35927/i-cant-call-widget-for-a-new-admin-plugin.aspx http://www.nopcommerce.com/boards/t/35927/i-cant-call-widget-for-a-new-admin-plugin.aspx

Best Regards. 最好的祝福。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM