If you have a grid with two columns and two rows and each item is a macro how can you get data from the controller to those macros?
I have tried route hijacking and custom models, but either the model has not got any data in it or the error error CS0030: Cannot convert type 'Umbraco.Web.Models.PartialViewMacroModel' to 'My.Model1'.
All the fixes for that error and examples for passing custom models are for partial views not macros and especially not macros in grids.
How to pass data to macros in a Grid?
If you have a grid with two columns and two rows and each item is a macro how can you get data from the controller to those macros?
I have tried route hijacking and custom models, but either the model has not got any data in it or the error
error CS0030: Cannot convert type 'Umbraco.Web.Models.PartialViewMacroModel' to 'My.Model1'
.All the fixes for that error and examples for passing custom models are for partial views not macros and especially not macros in grids.
Is this even possible?
is working on a reply...