Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Olov 27 posts 101 karma points
    Sep 14, 2015 @ 13:38
    Olov
    0

    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

    public class LatestNewsController : SurfaceController
    {
       // Here I've tried with a constructor,
       // with an Index() method with the [ChildActionOnly]
       // attribute and without it.
    

    It never hits any breakpoint that controller.

    The macro is inserted in a RTE.

  • Comment author was deleted

    Sep 15, 2015 @ 11:59

    Hi Olov,

    Which type of macro are you using? Can't you just create your own model/view/(surface)controller

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies