This project is read-only.

Orchard Custom module Priority does not work

Topics: Administration, Core, General, Writing modules
Jul 31, 2013 at 11:44 AM
Edited Jul 31, 2013 at 11:45 AM
I had tried to override the default orchard route and tried to make my custom module as start-up module with custom priority but it does not works.I want that my custom module will be as start up module.but it does not works.I am new getting it right any help !
public class DefaultRouteProvider : IRouteProvider
        public void GetRoutes(ICollection<RouteDescriptor> routes)
            foreach (var routeDescriptor in GetRoutes())

        public IEnumerable<RouteDescriptor> GetRoutes()
            return new[] {
                              new RouteDescriptor {                                                     
                                                      Priority = 110,
                                                      Route = new Route(
                                          new RouteValueDictionary {
                                          {"area", "ImidusHardware"},
                                           {"controller", "Hardware"},
                                            {"action", "ViewHardware"},
                                              {"id", ""}
                                new RouteValueDictionary(),
                                   new RouteValueDictionary {
                                         {"area", "ImidusHardware"}
                                            new MvcRouteHandler())
Jul 31, 2013 at 8:24 PM
You might want to check that there is no active alias on route /
Aug 1, 2013 at 6:49 AM
Edited Aug 1, 2013 at 7:37 AM
I had enable Alias-UI module and set my custome module as home that's works for me Thankx