Copied to clipboard

Flag this post as spam?

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


  • Amrik 4 posts 24 karma points
    Mar 23, 2011 @ 14:02
    Amrik
    0

    Use Umbraco with MVC Razor view engine

    Hi,

    I want to know if the Umbraco (any released version.Please don't say Umbraco 5.0 because it is not released yet) is compatible with MVC Razor. If yes then How?

    Actually i want to create a community site for news, blogs using Umbraco and Razor and also want to embed the data from sql server for these to Umbraco and show to the user. I have to use Razor engine and Umbraco. Please let me know how is it possible and from where I have to start(step by step)?

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Mar 23, 2011 @ 14:10
  • Amrik 4 posts 24 karma points
    Mar 24, 2011 @ 05:37
    Amrik
    0

    Hi Thanks for your reply,

    I had downloaded Umbraco 4.7 which was a project folder having aspx files but not .cs files.

    I run the project and install the Umbraco step by step.

    Now i add the macro in scripting folder.

    I don't know how to get the data from the sql server database and use it in Umbraco for database operations and then get the data from umbraco to MVC .cshtml files. I can'nt use aspx forms in the MVC due to client requirements.

    Please provide the steps to get the data in umbraco and integrate with CSHTML for Blogs.

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Mar 24, 2011 @ 06:51
    Jeroen Breuer
    0

    Have a look at these video's. They are a great start point: http://umbraco.com/help-and-support/video-tutorials/umbraco-fundamentals/razor

    This blog shows a nice example on how to use Linq To Umbraco in razor: http://www.cultiv.nl/blog/2011/2/16/how-to-use-razor-in-umbraco. You could do the same for sql queries.

    Jeroen

  • Amrik 4 posts 24 karma points
    Mar 24, 2011 @ 14:01
    Amrik
    0

    Hi,

    The videos in the link need money to pay. Just let me explain:

    when we create some macros the templates get stored in the database and when we run Umbraco release again then it get from database.

    Now if I add the umbraco folder in my MVC Razor website and want to access the umbraco pages for creating the blogs, News updates etc.

    Then How I will be able to do this? and How I can create the templates for Blogs using Umbraco? as i am going to build community disscussion site with Umbraco.

    I download Umbraco 4.7 Binary and Umbraco RC. but during Installation both allows only sample website starter kit to download and giving error in others. Will someone please provide me the link for full download of Umbraco 4.7 without errors and missing files.

Please Sign in or register to post replies

Write your reply to:

Draft