title: orchard cms routing question
body: <p>I have created some custom content types which include the route part so my content managers can edit the slugs for the items. I am having no luck configuring a route that will enable a controller of my own to serve requests for these items.  </p>
  
  <p>The route for paths to the ItemController in the core Routable module has a priority of 10. I have tried making a route that utilises an IRouteConstraint, similar to how the Blog module achieves what I want to do, with a lower priority but still no luck.  </p>
  
  <p>If I make my URLs end with a / then my custom route is activated, as then it does not match the path of my content items. This is not a desirable solution. I cannot understand why it won't discover my custom route ahead of the one belonging to the Routable module.</p>
  
  <p>Any help would be greatly appreciated, many thanks in advance.  </p>
  
  <p>UPDATE:<br>
  Here is my GetRoutes method from my IRouteProvider implementation:  </p>
  
  <pre><code>    public IEnumerable&lt;RouteDescriptor&gt; GetRoutes()
      {
          return new[] {
              new RouteDescriptor
              {
                  Priority = 0,
                  Route = new Route(
                      "Admin/Jugganort/{controller}/{action}/{id}",
                      new RouteValueDictionary {
                                                  {"area", "Jugganort"},
                                                  {"controller", "Area"},
                                                  {"action", "List"}
                                              },
                      new RouteValueDictionary(),
                      new RouteValueDictionary {
                                                  {"area", "Jugganort"}
                                              },
                      new MvcRouteHandler())
              },
              new RouteDescriptor
              {
                  Priority = 9,
                  Route = new Route(
                      "{location}/{merchant}/{promotion}",
                      new RouteValueDictionary {
                                                  {"area", "Jugganort"},
                                                  {"controller", "Home"},
                                                  {"action", "Index"},
                                                  {"merchant", UrlParameter.Optional},
                                                  {"promotion", UrlParameter.Optional}
                                              },
                      new RouteValueDictionary { 
                          { "location", _routeConstraint }
                      },
                      new RouteValueDictionary {
                                                  {"area", "Jugganort"}
                                              },
                      new MvcRouteHandler())
              }
          }; 
      }  
  </code></pre>
  
  <p>_routeConstraint is a simple implementation of IRouteConstraint that just looks for a hardcoded value of "newcastle" for the location in the route.  </p>
  
  <p>Is my understanding of the RoutePart not correct? Will those items always have to be served up from the Routable module's ItemController? Is my only option to user alternates to render custom shapes?</p>
  
  <p>The orchard forums will be my next point of call. Thanks again for any help you may be able to provide.</p>