How to set the homepage to a custom module

Topics: Customizing Orchard, General
Mar 30, 2013 at 2:28 PM
I have a page in a module that I want to use as my homepage. How do I not use a content item as the homepage?

I am using 1.6. I have seen that it used to be done with IHomePageProvider and now should be done maybe through Orchard.Autoroute? But I can't figure out what I need to change to direct it to my module. Any direction as to what to do here would be greatly appreciated. Thanks.
Mar 30, 2013 at 4:58 PM
The way I have done it to simply define a route for the home page with a high priority (>=100), so it takes precedence over the default Orchard routes.

AutoroutePart has a "set as homepage?" property, so if you have the AutoroutePart on your content item you can probably use that (I haven't used this myself but it should work).
Mar 31, 2013 at 6:40 AM
Define an empty alias to the route of the content item you want as the home page.