在nopcommerce中路由和重写网页网址 [英] Routing and rewiting pages url in nopcommerce

查看:140
本文介绍了在nopcommerce中路由和重写网页网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好!

是nopCommerce的新手,我的问题是如何将网页网址更改为自定义网址?在nopCommerce供应商页面中的示例我想将网址重新写入localhost:3088 / vendor / registration ..请尽可能或者我需要一个插件吗?

2。我怎样才能在nopcommerce中向供应商表添加更多表格字段?



我尝试过的方法:



i只需要一个良好的开端..那很多

我怎样才能在nopcommerce中向供应商表添加更多表字段?。

解决方案

对于自定义路线,NopCommerce提供IRouteProvider接口,请参阅:

如何注册新路线? - nopCommerce文档 - nopCommerce文档 [ ^ ]



要添加新属性(EntityFramework将您的属性添加到db表),请参阅Nop的DataLayer类库中的模型映射:

更新现有实体。如何添加新属性。 - nopCommerce文档 - nopCommerce文档 [ ^

Hello!
am a newbie in nopCommerce and my question is how do i change pages url into a custom one? example in nopCommerce vendor page i will like to re-write the url into something like localhost:3088/vendor/registration .. please is that possible or do i need a plugin for that?.
2. how can i possible add more table fields to vendors table in nopcommerce?.

What I have tried:

i just need an head start.. that alot
how can i possible add more table fields to vendors table in nopcommerce?.

解决方案

For custom routes NopCommerce provides the IRouteProvider-Interface, see:
How do I register new routes? - nopCommerce Documentation - nopCommerce documentation[^]

To add new Properties (EntityFramework will add your properties to the db table) see the Model-Mappings in Nop's DataLayer Class Library:
Updating an existing entity. How to add a new property. - nopCommerce Documentation - nopCommerce documentation[^]


这篇关于在nopcommerce中路由和重写网页网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆