Copied to clipboard

Flag this post as spam?

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


  • Shaishav Karnani from digitallymedia.com 354 posts 1638 karma points
    Jun 19, 2014 @ 15:35
    Shaishav Karnani from digitallymedia.com
    0

    How to pass MacroParameters within RTE to Controller in MVC

    Hi,

    I have created a Macro and that is having few property. I am accessing this Macro in the RTE and passing Macro Parameters.

    Now, I was looking to access these Parameters from my SurfaceController.

    I have created a [ChildActionOnly] method that can return Model for the Macro Partial View.

    However, I am not sure how to access Macro Parameters from inside the Method in the SurfaceController.

    Please can you guide how to do access them.

     

  • Jeavon Leopold 3074 posts 13631 karma points MVP 11x admin c-trib
    Jun 20, 2014 @ 09:59
    Jeavon Leopold
    0

    Hi, you cannot currently have a controller on a macro partial view, this is the one remaining feature of the originally planned MVC support. However I'm not sure if/when it will ever be implemented.

    So, the workaround is to have your Macro Partial View just call your @Html.Action and you can of course pass your macro parameters into your controller action.

    Does that make sense?

    Jeavon

Please Sign in or register to post replies

Write your reply to:

Draft