Reputation:
I am developing an asp.net mvc website product that needs to allow customers to add their own content pages, outside of the project.
So the product will deliver a core set of pages (views) all using a master page. The clients can add their own web pages (.aspx) which I was hoping they could inherit from the MVC masterpage. Obviously there is no view context, so all of my html helpers, and Url.* calls fail.
What would be the best strategy to allow someone to add web pages into an mvc product, re-using as much of the structure as possible.
Upvotes: 0
Views: 261
Reputation: 180787
What you are describing is a Content Management System. There are a number of those available for MVC. One of them is N2. N2 is a lightweight CMS framework to help you build web sites that anyone can update:
Another one is Oxite. Oxite is a pure MVC CMS:
These are open-source, so you can break them open and see how they did it.
Upvotes: 2
Reputation: 180787
Scott Hanselman's blog post on how to mix together these technologies is required reading for anyone wanting to use ASP.NET MVC and classic ASP.NET together.
Plug-In Hybrids: ASP.NET WebForms and ASP.MVC and ASP.NET Dynamic Data Side By Side
Upvotes: 0