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 3046 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 1530 posts 5278 karma points MVP 3x
    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 1530 posts 5278 karma points MVP 3x
    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>

  • 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