CodeGarden 2014

MVC Purée

2,398 views
June 26, 2014

Andy Butland / Zone

Given my background in the development of both Umbraco CMS and custom web applications using ASP.Net MVC, when MVC rendering support was featured in V4.10, it was the obvious way to go for future projects.

Working at gold partner Zone in London, we've built a number of sites using Umbraco and MVC. We've found that there's actually a number of different ways to do "MVC with Umbraco": the perhaps traditional Umbraco way with a fair bit of logic and data access in the templates or views, using surface controllers and child actions and/or using route hijacking. We've used a number of these approaches and found costs and benefits of each - which I think would make an interesting session.

Currently the model I use - and would focus on in the talk - is to go a more purist MVC approach, using dependency injection, thin controllers with route hijacking, mapping of Umbraco content to custom view models and use of strongly typed views. Tieing all this together is a mapping package (http://our.umbraco.org/projects/developer-tools/umbraco-mapper) that we've recently built, released and discussed on auHangout. We also look to use unit testing where possible.

In summary, the proposed discussion would be on ways to use MVC in Umbraco, and would cover:

  • quick primer on ASP.Net MVC and best practices in this area
  • approaches to MVC in Umbraco
  • surface controllers
  • route hijacking
  • custom view models and strongly typed views
  • mapping from Umbraco and other content to these view models
  • unit testing challenges and approaches
  • Q & A (no doubt there's as much to learn in this area as to impart!)

Rate this video

1 star 2 star 3 star 4 star 5 star
rick December 02, 2018 12:47 PM Delete

You finished a couple fine focuses there. I did an inquiry on the subject and discovered almost all persons will oblige with your online journal. backlinks

Arlo Max November 24, 2018 09:52 AM Delete

Very kind to see this information you shared. I saved it to my bookmarks and will visit on daily basis.
Andrew Marc jacket

Lina Dany November 24, 2018 09:48 AM Delete

Nice video. Really liked it
I have to upload my videos about Winter Shearling Jackets

Ronaldane November 20, 2018 12:43 PM Delete

Happy to be part of it.

shawnkemp November 02, 2018 07:10 AM Delete

It is a new information you have shared with us. Accidentally I have seen the post and I came to know about the best meal replacement shakes. Actually, Chris Jericho WWE Jacket first time i was hearing about this shakes

liza August 11, 2018 11:15 AM Delete

If I create a custom internet utility for a business enterprise, how can i make certain the copyright will belong to me.?
I need to ensure the custom utility code may be used for different corporations, without any prison implications. i'm in the big apple and i am a IT consultant https://www.assignmentmoz.co.uk/

apiw igi May 29, 2018 10:59 AM Delete

You can now see the new lectures of the great advice like the embrace, extend and enrich and more others which are quite interesting. Catch the best moment with https://www.aussiewritingreviews.com/edubirdie-review/ and enjoy the new choice of the life in this session.

Add a comment...
Post as (log out)