I have created a theme in Orchard and on the homepage I want to render a view from a module.
The view that is going to be rendered is determined by two modules. One "default" module and another one that overrides the routes of the default one if the latter is enabled in Orchard. So what I preferably want to do is to somehow specify the route/url in the homepage of my theme and render the returned view dependend on the enabled module. Is this possible to do in Orchard?
I could use AJAX to dynamically render the view upon loading or use an <iframe>
and specficy the url but I would rather use a "pure" Orchard solution.
Any suggestions?
controller
andarea
then? Like@{ Html.RenderAction("Register", new {controller = "Home", area = "Users"}) }
or@{ Html.RenderAction("Register", new {controller = "Home", area = "Invites"}) }
dependent on which registration form that I want to use? What I would want is to get/push a registration form from/into the homepage. The form fromInvites
should be used if that module is enabled, otherwise the form fromUsers
should be used. – Mattias