Is it possible to "route hijack" a macro? I'm creating strongly typed view models for pages through route hijacking but I can't find a way to make that work in a macro. I've created a macro with the alias "Latestnews", tried to create a controller like I do for pages but without success
public class LatestNewsController : SurfaceController
{
// Here I've tried with a constructor,
// with an Index() method with the [ChildActionOnly]
// attribute and without it.
Route hijacking a macro
Is it possible to "route hijack" a macro? I'm creating strongly typed view models for pages through route hijacking but I can't find a way to make that work in a macro. I've created a macro with the alias "Latestnews", tried to create a controller like I do for pages but without success
It never hits any breakpoint that controller.
The macro is inserted in a RTE.
Comment author was deleted
Hi Olov,
Which type of macro are you using? Can't you just create your own model/view/(surface)controller
is working on a reply...