Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Edwin van Koppen 156 posts 270 karma points
    Nov 12, 2012 @ 13:24
    Edwin van Koppen
    0

    Umbraco 4.10 all mvc visual studio project

    Hi all,

    After looking at Umbraco 5 and really liking the idea of MVC and a open source CMS for our company, Umbraco stops the project.. really didn't liked that but i understand that the project don't have a good begin to start with you can better stop. So now with 4.10 again MVC in the picture again, i again starts looking if Umbraco is something for us but again with the same questions as version 5. How do i start with a good begin :)

    I think the best way to start is with MVC project in Visual Studio and copy the Umbraco project to it but i don't see any example or how i must do this for 4.10 anywhere. The most post like http://shazwazza.com/post/MVC-in-Umbraco-v4.aspx or http://memoryleak.me.uk/2009/04/umbraco-and-aspnet-mvc.html are alot older or are with copy dll (http://umbraco.com/help-and-support/video-tutorials/from-v5-to-v4/level-2/mvc-in-umbraco-4.aspx) what is, i think, really ugly. The only thing i see of MVC in the basic installation is the View folder but that's no MVC just a Razor implementation of Umbraco imho. What if i need a to make a connection with a webservice or something like that, i also need the Model and Controller if i want to use MVC. 

    So my question is, can i set up a real MVC 4 project (of is 3 really needed) with Umbraco? I think i need to rewrite the paths to Umbraco standards so that the models with the path is composed and add some umbraco dll to use the models but is that's the best way to work?

    I just started with Umbraco 4 so if i am completely wrong or other problems i can ran into if i work this way i really want to hear it. Any thought is appreciated!

    Thx!

  • Richard Terris 273 posts 715 karma points
    Nov 12, 2012 @ 14:58
    Richard Terris
    0

    Chris Koiak has created a new package here http://our.umbraco.org/projects/starter-kits/standard-website-mvc which may be of help.

    I haven't used it yet but it seems very good.

    Might be wrong but I don't think it's going to be "pure" MVC, it'll be more Umbraco's version of MVC but Niels did tweet a link to some documentation today which may also help you.

    http://our.umbraco.org/documentation/Reference/Mvc/

  • Edwin van Koppen 156 posts 270 karma points
    Nov 14, 2012 @ 13:39
    Edwin van Koppen
    0

    Thanks Richard, do you know if it's possible to run Umbraco with MVC 4?

  • Richard Terris 273 posts 715 karma points
    Nov 14, 2012 @ 13:53
    Richard Terris
    0

    Not sure Edwin, perhaps contact Chris Koiak on twitter?

    As I said, I've yet to use MVC in Umbraco 4 so I don't know which version it works with.

  • Craig100 1136 posts 2523 karma points c-trib
    Nov 14, 2012 @ 18:01
    Craig100
    0

    Having just received a codeplex notification with a NuGet command in it I thought I'd have a play with 4.10.1 but I got an error in VS2010:- 

    Install failed. Rolling back...
    Install-Package : Already referencing a newer version of 'Microsoft.AspNet.Mvc'.
    At line:1 char:16
    + Install-Package <<<<  UmbracoCms
        + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
        + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

    Even though the notification was for 4.10.1 it was actually trying to install 4.10.0 which is a bit disappointing. The notification mentioned 4.10.1 fixed a security hole but the link to the blog wasn't configured correctly so we're none the wiser.

    I have MVC 4 installed. Any idea what it croaked on? 

  • Richard Terris 273 posts 715 karma points
    Nov 14, 2012 @ 18:43
    Richard Terris
    1

    not.entirely sure.

    sounds to me like you have mvc 4 installed and installer doesnt like it.

    try removing the mvc 4 reference?

    im not sure but could be mvc 3 is version that works?

  • Craig100 1136 posts 2523 karma points c-trib
    Nov 14, 2012 @ 19:00
    Craig100
    0

    Thanks Richard, that was it. Removed MVC4 and reinstalled umbraco correctly. Just need to apply the 4.10.1 patch now.

     

  • Richard Terris 273 posts 715 karma points
    Nov 14, 2012 @ 19:05
    Richard Terris
    0

    excellent!

    answers the question as to which version of mvc we're using   :)

  • Richard Terris 273 posts 715 karma points
    Nov 15, 2012 @ 09:41
    Richard Terris
    0

    Mind and mark the answer :D

Please Sign in or register to post replies

Write your reply to:

Draft