Copied to clipboard

Flag this post as spam?

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


  • Meni 277 posts 534 karma points
    May 22, 2013 @ 21:42
    Meni
    0

    Is it possible to use Razor script in Umbraco 4? (Win forms)

    I need to make some changes to existing Umbraco site which build on Umbraco 4 with win forms (Master pages, etc) - Is it possible to use Razor scripts? / Razor code? I want to use it in the new pages I'm add

     

    Thanks. 

  • Tom Fulton 2030 posts 4998 karma points c-trib
    May 22, 2013 @ 21:56
    Tom Fulton
    1

    Hi,

    What version of Umbraco are you using?  There's some early support for Razor in 4.7, and I think it got fairly polished around 4.7.2.  This is just for macros though, you'd still be using masterpages.

    If you're in 4.7, this page has a lot of links to some helpful resources that should explain further.

    If you're ~4.11 you can still use the methods above or you can use Partial View Macros which will have some different syntax - more documentation here.

    -Tom

Please Sign in or register to post replies

Write your reply to:

Draft