代码之家  ›  专栏  ›  技术社区  ›  Ritwick Dey

如何更改nopcommerce管理端菜单的显示名称

  •  -1
  • Ritwick Dey  · 技术社区  · 7 年前

    问题截图: enter image description here

    我想更改显示名称。

    • 我到目前为止所做的:

    已将此行添加到 sidemap.config

    <siteMapNode SystemName="Customer reports" nopResource="Admin.Reports.Customers" PermissionNames="ManageCustomers" controller="Report" action="Customers" IconClass="fa-dot-circle-o" />
    

    已将此行添加到 defaultResources.nopres.xml

     <LocaleResource Name="Admin.Reports.Rewords">
        <Value>Reword Reports</Value>
      </LocaleResource>
    

    http://lateshtclick.com/blogpost/adding-a-new-menu-item-in-admin-panel

    我正在使用NopCommerce4.1

    1 回复  |  直到 7 年前
        1
  •  2
  •   Divyang Desai Jonny B'Good    7 年前

    默认资源在nopCommerce安装时被添加到数据库中,因此如果您试图以编程方式添加任何条目,您也需要将该记录添加到DB中。要检查所需资源是否可用,请执行以下操作:

    转到“管理”>“配置”>“语言”>“英语”(默认)>“编辑”>“字符串资源”选项卡
    Admin.Reports.Rewords ,您会发现该记录不存在,现在通过“添加新记录”按钮手动添加该记录,并选中“管理”菜单。

    希望这有帮助!

    推荐文章