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!
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!
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
Thanks for the response Jeroen!
I was able to use a PluginController and add the specific routes to the route table on startup.
is working on a reply...