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?
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.
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?
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
Thanks Jeavon. At least I know that I'm doing it "right". :)
is working on a reply...