The bottom line is that this code does not work. It does now register the route correctly. Can someone explain what is wrong here? Better yet is there any documentation whatsover to explain how to extend in this manner (these stupid helloword examples are not real world and worthless)
The bottom line is that this code does not work. It does not register the route correctly. Can someone explain what is wrong here? Better yet is there any documentation whatsover to explain how to extend in this manner? (these stupid helloword examples are not real world and worthless)
registering route umbraco 4.7 is not working
I have seen post stating that it's possible to add routes to global like the following:
public class MyClass : umbraco.Global
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.IgnoreRoute("{resource}.aspx/{*pathInfo}");
routes.IgnoreRoute("{resource}.asmx/{*pathInfo}");
routes.MapRoute(
"mbldev", // Route name
"mobile/", // URL with parameters
new { controller = "Mobile", action = "mobile_home", id = "" }
);
}
protected override void Application_Start(object sender, EventArgs e)
{
AreaRegistration.RegisterAllAreas();
RegisterRoutes(RouteTable.Routes);
base.Application_Start(sender, e);
}
}
The bottom line is that this code does not work. It does now register the route correctly. Can someone explain what is wrong here? Better yet is there any documentation whatsover to explain how to extend in this manner (these stupid helloword examples are not real world and worthless)
Thanks,
The bottom line is that this code does not work. It does not register the route correctly. Can someone explain what is wrong here? Better yet is there any documentation whatsover to explain how to extend in this manner? (these stupid helloword examples are not real world and worthless)
is working on a reply...