I am involved in a new project where the client wants to use Umbraco 4.6.1 and MVC 3 together.
At the moment all I am trying to do is make
a standard install of Umbraco 4.6.1 work with a basic MVC app. I am using IIS7 /
Integrated Mode / Windows 7 and Visual Studio 2010.
The client wants to specifically use MVC for developing additional features for a website which will be maintained with Umbraco.
There is apparently an "in the future" plan to port the site to another "big and fancy" CMS which already supports MVC, so they want to build extra bits using MVC for this - and other reasons (code reuse, etc).
There must be someone who's done it ... or even someone who has tried and failed ... I need to know if it's possible or not, and if it is - how to do it!
I got to the point of having an installation of Umbraco 4.6.1 running with a basic MVC application in the same website. I did not get to retrieving info from Umbraco in the MVC app.
I can't guarantee this is complete, or that all of it is necessary, but ...
- copy contents of MVC app bin folder to Umbraco bin - copy Content, Scripts and Views folders from MVC to Umbraco site
- add the following to <appSettings> section in web.config
Umbraco 4.6.1 and MVC 3
Umbraco 4.6 has support for razor controls out of the box and will be heavy improved in the upcoming 4.6.2 version. Can't you just use that?
Jeroen
The client wants to specifically use MVC for developing additional features for a website which will be maintained with Umbraco.
There is apparently an "in the future" plan to port the site to another "big and fancy" CMS which already supports MVC, so they want to build extra bits using MVC for this - and other reasons (code reuse, etc).
Too bad Umbraco 5 won't be out for a while since it's build completely with MVC 3.
Jeroen
Too right - Umbraco 5 would have been ideal :-(
There must be someone who's done it ... or even someone who has tried and failed ... I need to know if it's possible or not, and if it is - how to do it!
Did you manage to use Umbraco 4.* with MVC? If so I would really appreciate some bullet points on how you did this?
Jason
I got to the point of having an installation of Umbraco 4.6.1 running with a basic MVC application in the same website. I did not get to retrieving info from Umbraco in the MVC app.
I can't guarantee this is complete, or that all of it is necessary, but ...
- copy contents of MVC app bin folder to Umbraco bin
- copy Content, Scripts and Views folders from MVC to Umbraco site
- add the following to <appSettings> section in web.config
- add the following to the <system.web> <pages> section in web.config
- add the following to the <httpModules> section in web.config
- add the following to <assemblies> in web.config
you may also need to exclude certain MVC paths in the <umbracoReservedPaths> element.
I hope that is everything and that it enables you to get started! :-)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion