How could I use ASP.NET MVC framework in conjunction with my CMS software? -
I am studying on MVC and I have created some DB-driven pet projects with it and I am very happy with the change, the webform.
However, I have some limitations that keep me back with the webform and I was wondering if you can help me with it.
I am a web CMS company as an advisor, so all the websites (public sites, intranets, extranets, you name it) are based on CMS software from my company (which will be unaware) .
One of the features in which sales people have their "friendly" url to pitch about our software is geographically stored and structured like a file system in all the data CMS. Then when you point your browser into CMS, then the content will be returned from the stored items in the root with the name "About".
Each item also has an (interchangeable) template registration which is the physical location that is going to display its content (an .aspx page). Like "View" on MVC
To handle a friendly URL, I have to add an HTTP handler as follows:
& lt; Verb = "*" Add Path = "*" Type = "CMS. ASP Delivery. Http EstessHandler Factory, CMS Delivery" / & gt;
It will take care of friendly URLs and mapping between content and ideas.
In an architectural way you can see that as MVC data is stored in CMS, the presentation is independent of the data, and the handler will be the controller.
But when it comes to coding in itself, this is the same old webform spaghetti
So, my question is: do you see in any way that both of me Can I use the MVC and my CMS 'HTT handler?
This depends on the solid implementation of the HTTP handler, but in most cases this is possible. You must add MVC UrlRoutingModule and setup MVC. I use MVC in a CMS environment with friendly url. CMS is called EPiServer and this has the same functionality as what you described. I use asp.net MVC for template pages. The path of physical pages is actually controlled by the functions of the controllers. It works fine and with some tweaking, I can say that it is much better than WebFroms, especially if you develop custom web applications.
Comments
Post a Comment