Copied to clipboard

Flag this post as spam?

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


  • Floyd 7 posts 51 karma points
    Apr 08, 2014 @ 02:03
    Floyd
    0

    Umbraco 7 Update Umbraco Routes

    I am trying to create an Umbraco 7 MVC application. In doing so, I want to be able to create custom controllers that manage data behind the scenes. Through my research, I found using the SurfaceController was the most successful. However, the route adds "/umbraco/surface/" to the page. For example, my Test Controller and View would look like "/umbraco/surface/Test". Is there a way to manage these routes and have it simply go to "/Test" without adding the Umbraco route to it? Any guidance on how to create custom controllers within Umbraco 7 would be helpful!

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Apr 08, 2014 @ 12:06
    Jeroen Breuer
    0

    Hello,

    Maybe route hijacking is what you are looking for: http://our.umbraco.org/documentation/Reference/Mvc/custom-controllers

    You can find some more (v6) examples in the Hybrid Framework.

    Jeroen

  • Floyd 7 posts 51 karma points
    Apr 08, 2014 @ 20:04
    Floyd
    0

    Thanks for the response Jeroen!

    I was able to use a PluginController and add the specific routes to the route table on startup.

     

Please Sign in or register to post replies

Write your reply to:

Draft