Copied to clipboard

Flag this post as spam?

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


  • Bob Banks 16 posts 36 karma points
    Sep 17, 2013 @ 17:27
    Bob Banks
    0

    Calling child action in SurfaceController from macro without partial?

    I'm developing a site that will allow editors to drop-in chunks of database driven content into rich-text editors.  To that end, I've build child actions in a SurfaceController which builds the model and renders a partial view.  In order to call this child action from a macro, I've created a rather silly partial view that simply calls @Html.Action(...).  

    Is there any way to skip this partial view and have the macro called the SurfaceController child action directly?  

     

  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Sep 17, 2013 @ 23:27
    Jeavon Leopold
    0

    Hi Bob,

    Not currently, there is a planned feature called "Child Action Macro" which would be what you are after. However as you will notice it is the only remaining task for Umbraco Mvc support and I understand that to actually complete the task would require a entire rewrite of the Macro engine and so it has been de prioritised for the foreseeable.

    Keep going with the silly wrappers :-)

    Jeavon

  • Bob Banks 16 posts 36 karma points
    Sep 18, 2013 @ 14:59
    Bob Banks
    0

    Thanks Jeavon.  At least I know that I'm doing it "right". :)

Please Sign in or register to post replies

Write your reply to:

Draft