Reputation: 3
I am using Orchard 1.7 and I want to make start page from my custom module.
I've created a module with name MYMODULE and under it's view folder I have *.cshtml with name Index. I want to set Index page as a startup page of my site. It means first page will be Index.cshtml from MYMODULE.
Is it Possible? Please help me.
Upvotes: 0
Views: 601
Reputation: 6581
Enable the aliasUI feature in Modules section
Add a blank route that points to /MyModule/MyController and it should work. May have to delete the current homepage url. And maybe it isn't blank but a "/". I cant remember ^_^
EDIT:
Check this link out: http://davidhayden.com/blog/modifying-orchard-permalinks-after-publishing-content-items Now if you follow the instructions to modify urls, you will see an alias called
/
This will probably link to your Welcome to Orchard page route, ie. /Contents/Item/Display/12 or something. Edit this route to point at your custom page.
Upvotes: 1
Reputation: 3
i solve this problem .please follow these steps:-
Login with Admin and open dashboard page.
Enable Aliases Module.
Click on Aliases Link left on dashboard page.
Edit first Aliase (top most) change only RoutePath write your module name
/controllername(Mymodule/home)
after that it will be your startup
Upvotes: 0