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.
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.
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
is working on a reply...