asp.net-core - 如何更改 nopcommerce 管理侧菜单的显示名称
问题描述
我想更改显示名称。
- 到目前为止我做了什么:
将此行添加到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
但它不起作用!:(
我正在使用 NopCommerce 4.1
解决方案
默认资源会在 nopCommerce 安装时添加到数据库中,因此如果您尝试以编程方式添加任何条目,您也需要将该记录添加到数据库中。检查所需资源是否可用:
转到 admin > configuration > Languages > English(default) > Edit > String resources 选项卡
并尝试使用 Resource name 搜索Admin.Reports.Rewords
,您会发现记录不存在,现在通过 Add new 按钮手动添加它,并检查它的管理菜单。
希望这可以帮助!
推荐阅读
- java - Java:如何添加两个整数流并生成一个新流
- android - E/memtrack:无法加载 memtrack Android studio
- python - str 不是可调用对象 python
- android - 如何通过一个方法更新整个 kotlin 类中的 var,然后用另一个方法调用更新它
- python - IndexError:索引 13 超出轴 0 的范围,大小为 13 问题
- scala - 在 Spark Scala 中注册前一个 DF 后创建一个 DF
- google-analytics - 如何使用 Google Analytics 自定义社交流量?
- javascript - Javascript encodeURI 返回意外的值
- python - python(将参数传递给函数)
- python - 导入在 Python shell 中工作,但不是从文件运行时