How do I integrate Orchard CMS with a current MVC2 application?

不打扰是莪最后的温柔 提交于 2020-01-14 14:01:50

问题


For my project, the client has an existing ASP.NET MVC 2 web application that has a product catalog and shopping cart functionality. The client is redesigning their website and would like to use Orchard so that they can maintain their content pages such as home, about, services, etc.

They would like to use as much of the existing code as possible and keep the shopping cart functionality in place, with just cosmetic changes.

Being very new to Orchard (i have only been reading up on it and following video tutorials for a few days), I would like to know how to approach this problem and would like to ask the experts here for some help. I would like to know if we could use Orchard for the scenario above and if there are suggestions on how to approach on developing for this scenario.

Thank you so much.


回答1:


user1585016,

funnily enough, got the codeproject newsletter the other day and there was a really nice article walking you thro the steps of mvc and orchard 'marriage'. lovely article:

http://www.codeproject.com/Articles/434484/Welding-on-Orchard-CMS




回答2:


Your best bet is to refactor the MVC application into an Orchard module. You'll need to add a manifest, redefine routes in a routes.cs file (take an existing one for inspiration) and then add some [Themed] attributes. It really depends on the level of integration you want to achieve, but that's the start of it.



来源:https://stackoverflow.com/questions/11867113/how-do-i-integrate-orchard-cms-with-a-current-mvc2-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!