Note that there are some explanatory texts on larger screens.

plurals
  1. PODD4T Default route not working
    primarykey
    data
    text
    <p>I am using the DD4T framework with SDL Tridion 2011 and ASP.NET MVC4</p> <p>I have some non-DD4T Controllers and Views which I want to use, however I am getting a 404 error when I try to go to these urls.</p> <p>This is my route table</p> <pre><code> public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); // Route for SDL Tridion UI 2011 (Aka !SiteEdit) routes.MapRoute( "SiteEditBlankPage", "se_blank.html", new { controller = "Empty", action = "Index" }); routes.MapRoute( null, // Route name "xml/{*PageId}", // URL with parameters new { controller = "Page", action = "Xml" }, // Parameter defaults new { pageId = @"^(.*)?$" } // Parameter constraints ); // Tridion page route routes.MapRoute( "TridionPage", "{*PageId}", new { controller = "Page", action = "Page" }, // Parameter defaults new { pageId = @"^(.*)?$" } // Parameter constraints ); routes.MapRoute( null, // Route name "{controller}/{action}/{id}", // URL with parameters new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults ); } </code></pre> <p>I have tried moving the default route above the Tridion one but then I get 404s for the Tridion pages.</p> <p>The only way to get it working it seems is to have a specific route to my controller e.g: </p> <pre><code> routes.MapRoute( null, // Route name "MyController/{action}/{id}", // URL with parameters new { controller = "MyController", action = "Index", id = UrlParameter.Optional } // Parameter defaults ); </code></pre> <p>Anyone have any ideas? As the above solution is not ideal.</p> <p>(I do not have any UI 2012 config in my web.config)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload