x First time here? Check out the FAQ
Richard Boelen started this project on Wednesday, May 25, 2011 it's current version is 1.1.1 .

Package Info

Project Owner/Creator

Avatar

Richard Boelen

51posts 109karma

Project Compatibility

No compatible versions have been reported, be the first!

View Details Report Compatibility

Project Information

Project owner:
Richard Boelen
Created:
Wednesday, May 25, 2011
Is Stable:
Project is stable
Current version
1.1.1
License
MIT
Tags
extension  razor  Mvc 
Downloads:
131

MvcBridge

MvcBridge is a set of helper classes that enables you to render standard Razor MVC PartialViews, complete with strongly typed Razor MVC Views, Modelbinding, Controllers, Actions, Html Helpers and Validation.

I started this package as I was in need of some standard Razor MVC form render, validation and posting. I wanted to have the full Mvc Modelbinding in Mvc Razor views and actual Mvc Controllers that handle the requests and postback from the form.

UPDATE 30-5-2011: added support for multiple views and forms

UPDATE 27-5-2011: see youtube demo : http://youtu.be/7ZK-IlOFKWI

UPDATE 27-5-2011: sourcecode available on codeplex

Steps to get you started:

1. Install MvcBridge package

2. Create an Empty Mvc 3 Web Project (With razor view engine)

3. Reference the Devotit.Umbraco.MvcBridge from your Umbraco site bin folder

4. Create a Controller which inherits from MvcBridgeController, by MVC conventions this class gets the name {yourname}Controller

5. Create an PartialViewResult Action in your controller

6. Create the view for your Action and let it inherit from Devotit.Umbraco.MvcBridge.MvcBridgeView<dynamic>

7. Build your project and copy it's dll to the umbraco bin folder

8. Copy the Views folder to the Umbraco site root 

9. Insert the MvcRenderAction macro somewhere in an umbraco page and fill the Controller and Action parameters. Controller should be {yourname} and NOT {yourname}Controller

10 publish and you should now see the razor mvc view rendered on you page.

Hope this is helpfull. If some people are interested in this package,

The MvcBridgeDemo is a solution demonstrating the above steps. Be sure to add a project reference to your Umbraco site and check the references for the Devotit.Umbraco.MvcBridge.dll in the MvcBridgeDemo project.

The MvcBridgeDemo project has post-built events that should copy the files for you, but you need to make sure that the destination is setup correctly.

Any feedback is welcome, thanks!

 

Package Files

Documentation

Package discussions

MvcBridge support
7 topics, 23 posts
please leave your feedback
6 months ago by Richard Boelen