您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息
免费发信息

Nop3.9的下载与使用

2024/4/29 23:19:03发布11次查看
一:中文资源
先去nop官网,下载3.9中文包,此中文包翻译不全,在定制的过程中,可以慢慢修改。官网地址 www.nopcommerce.com。
进去后台 configuration -> languages
添加一条简体中文的记录,保存后导入中文包,页面顶部切换语言即可。
二:ui汉化
libraries -> nop.core -> commonhelper - > settelerikculture() 方法
presentation -> nop.admin -> views -> shared -> _adminlayout.cshtml
添加引用
html.appendscriptparts(string.format(~/administration/scripts/kendo/{0}/cultures/kendo.culture.zh-cn.min.js, kendoversion)); html.appendscriptparts(string.format(~/administration/scripts/kendo/{0}/cultures/kendo.messages.zh-cn.js, kendoversion));
<script>kendo.culture(zh-cn);</script>
三:编辑器
个人不太喜欢默认的编辑器,使用百度的ueditor富文本编辑器。ueditor官网
presentation -> nop.web -> content 下创建文件夹 uditor,将下载的文件copy至uditor文件夹中。
presentation -> nop.admin -> views -> shared -> editortemplates 下创建页面 ueditor.cshtml
@model string @using nop.core @using nop.core.domain.common @using nop.services.security @using nop.web.framework.ui @{     html.addscriptparts(~/content/ueditor/ueditor.config.js);     html.addscriptparts(~/content/ueditor/ueditor.all.js);     html.addscriptparts(~/content/ueditor/lang/zh-cn/zh-cn.js); }<script>ue.geteditor(@viewdata.templateinfo.getfullhtmlfieldid(string.empty), {         initialframewidth: 100%,initialframeheight: 400});</script>@html.textarea(string.empty, /* name suffix */viewdata.templateinfo.formattedmodelvalue /* initial value */)
在后台调用编辑器
效果如下:
关于样式和文件下载路径和其他配置,去看api文档即可,js中也有相应注释。
以上就是nop3.9的下载与使用的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录