Our application currently using Umbraco 8 latest version . We are planning to upgrade it to Umbraco 10 . In current application we are using Macro to load the dynamic content from MVC partial view by following the steps :
Create "Partial View Macro File" and invoke required action and controller from there
Create "Macro File" by selecting the above created Partial View Macro .
3. Create content and added the Macro created above to load the partial view from application .
All our contents designed this way to load the view . Is there any way to achieve the same or similar in Umbraco 10 ? Kindly share your ideas to do this migration faster.
Umbraco 8 to 10 upgrade
Our application currently using Umbraco 8 latest version . We are planning to upgrade it to Umbraco 10 . In current application we are using Macro to load the dynamic content from MVC partial view by following the steps :
Create "Partial View Macro File" and invoke required action and controller from there
@inherits Umbraco.Web.Macros.PartialViewMacroPage @Html.Action("AccountDashBoard", "Contract")
Create "Macro File" by selecting the above created Partial View Macro .
3. Create content and added the Macro created above to load the partial view from application .
All our contents designed this way to load the view . Is there any way to achieve the same or similar in Umbraco 10 ? Kindly share your ideas to do this migration faster.
Hi Thamodaran,
You should look into using view components to replace your
@Html.Action("AccountDashBoard", "Contract")
in the macro partial.you can't use
@Html.Action
in .net coreis working on a reply...