Allow Users to Edit the View

Topics: Customizing Orchard
Sep 9, 2014 at 5:36 PM
I built a custom module that returns a view based on the name of the Tenant Site (returns a different view for each tenant). Is there a way to allow users to edit this view using Orchard instead of having to go into the code and change the .cshtml file? Thank you.
Sep 9, 2014 at 6:00 PM
I don't know how to do that, but I know of modules that do the same thing. Try looking at this module:

It allows orchard users to edit the razor views in the backend.

Hope it helps :)
Sep 9, 2014 at 6:17 PM
Edited Sep 9, 2014 at 7:18 PM
Thanks, I will take a look at that. Do you know if it's possible to render a content item within a view? If I could just create a new content item that can be edited by the user (site admin) and then include it in the view as the body it should work for what I am trying to accomplish.
Sep 9, 2014 at 7:44 PM
Another option would be if it's possible to have a content item with the same url as my router (so far I haven't been able to get this to work). If I could get that working then the content item would be what the user sees in the front end and my module's controller will run it's code in the background.