Copied to clipboard

Flag this post as spam?

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


  • Priya 29 posts 89 karma points
    Nov 06, 2014 @ 11:31
    Priya
    0

    How to call partial view file into macro ?

    Hi Guys,

    I am using Umbraco 7.1.6 version for my project.

    I have created one page called login.cshtml in Views -> Partials.

    Now I will have to create a macro and call that macro in the content page.

    I have tried to create macro and gave login.cshtml file name in Razor script. but it is not working.

    can anyone help me to create a macro with .cshtml file and call it in content page ?

    Thanks, Priya

  • Priya 29 posts 89 karma points
    Nov 06, 2014 @ 12:09
    Priya
    0

    Hi Guys,

    I am quite new to Umbraco. Its really urgent task for me. Can anybody please help me to resolve above problem ?

    Thanks, Priya

  • Dave Woestenborghs 3325 posts 11170 karma points MVP 5x admin c-trib
    Nov 06, 2014 @ 13:09
    Dave Woestenborghs
    0

    Here you can find documentation on working with views and macros : http://our.umbraco.org/documentation/Reference/Templating/Macros/Partial-View-Macros/

    Then when you have your macro view in place you can just call

    @Html.Partial("Login")

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies