Copied to clipboard

Flag this post as spam?

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


  • Aaron Powell 1708 posts 3043 karma points c-trib
    Oct 01, 2013 @ 04:17
    Aaron Powell
    0

    Rendering a macro from inside a SurfaceController's View

    As the title asks, is it possible to render a macro from within the View of a SurfaceController?

    What about Umbraco field content, can that be rendered inside a SurfaceController?

  • Shannon Deminick 1488 posts 4988 karma points hq
    Oct 01, 2013 @ 04:19
    Shannon Deminick
    0

    You have access to the UmbracoHelper as a property inside of a SurfaceController so give it a try!

    Umbraco.RenderMacro(....)

    should work, same with Field

  • Shannon Deminick 1488 posts 4988 karma points hq
    Oct 01, 2013 @ 04:20
    Shannon Deminick
    100

    You also have access to the UmbracoHelper inside of your view too with @Umbraco just depends on what your view is inheriting from, you'll have to at least use UmbracoViewPage<T>

Please Sign in or register to post replies

Write your reply to:

Draft