Copied to clipboard

Flag this post as spam?

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


  • Damien (Slipoch) 62 posts 346 karma points
    Feb 02, 2017 @ 00:32
    Damien (Slipoch)
    0

    route redirection from treenode to MVC Controller for the node content view, is it possible?

    I have not seen this in any of the tutorials, just angular controllers and plain html pages. I wish to use a mvc controller and some cshtml pages and would like to know if I can route the treenodes to a controller?

     node = CreateTreeNode("1234", "-1", queryStrings, "eWay Payments");
     node.RoutePath = "/NCHAOffice/NCHAOfficeTree/views/1234";
     nodes.Add(node);
    

    The above just seems to try to redirect to a html page, is there any way to redirect this to an mvc controller? Where would I put the controller if so and would it need to inherit from UmbracoController etc.?

    I do not wish to use angular as I will be hitting up some very complex models that easier to handle in c#.

  • Damien (Slipoch) 62 posts 346 karma points
    Jun 15, 2017 @ 00:02
    Damien (Slipoch)
    0

    From everything I have read you HAVE to use plain html and angular. (what is the point in having a MVC architecture inside a MVC architecture, angular is pointless overhead and complication when using .NET websites)

    So no real solution I have found, angular must be used to put information from your model onto the page.

Please Sign in or register to post replies

Write your reply to:

Draft