I am hoping someone can provide quick/easy guidance on implementing custom routing prior to having Umbraco parse the request URL without my having to reverse engineering the entire application startup process of Umbraco's source.
I need to route this: http://www.mysite.com/category/{category}/ through the Umbraco application process to my routed file (/default.aspx), which represents the "/" node of the CMS.
I've added /category/ to umbracoReservedPaths.
I'm trying to configure the routes on the global OnApplicationStarting event, but it doesn't even get that far in the application lifecycle.
HiJack Umbraco Route Web Forms Site
I've found this for MVC sites: http://our.umbraco.org/documentation/reference/Templating/Mvc/custom-controllers
I am hoping someone can provide quick/easy guidance on implementing custom routing prior to having Umbraco parse the request URL without my having to reverse engineering the entire application startup process of Umbraco's source.
I need to route this: http://www.mysite.com/category/{category}/ through the Umbraco application process to my routed file (/default.aspx), which represents the "/" node of the CMS.
I've added /category/ to umbracoReservedPaths.
I'm trying to configure the routes on the global OnApplicationStarting event, but it doesn't even get that far in the application lifecycle.
Thanks for the help.
Hello,
Route hijacking is for document types and template names.
If you need to route to /catergory/categoryName you could try IContentFinder:
http://our.umbraco.org/documentation/Reference/Request-Pipeline/IContentFinder
https://gist.github.com/leekelleher/5966488
http://our.umbraco.org/forum/developers/extending-umbraco/41367-Umbraco-6-MVC-Custom-MVC-Route
http://creativewebspecialist.co.uk/2013/08/07/the-new-way-to-do-a-404-umbraco-handler/
Jeroen
Excellent, thanks. I was able to use the IContentFinder per your examples. I appreciate it.
Glad I could help. Please mark a post as the solution if it helped you.
Jeroen
is working on a reply...