Moving theme layout file

Topics: Writing themes
Jul 16, 2012 at 10:34 PM

I'm using Orchard for my blog and have another CMS that generates static content and master pages for all other content. I want to create a virtual directory to put my theme layout.cshtml file into from the other CMS and reference it from the Orchard theme. Is there a way to put the layout.cshtml file into a folder by itself like ThemeName/Views/Layout/layout.cshtml ? 

Jul 23, 2012 at 11:57 AM

No, I don't think you can do that. You may be able to hack something by maybe changing the shape on the fly so that it gets resolved to something in a deeper folder. Maybe. Is it worth the trouble? Is that file going to be changed often?

Aug 2, 2012 at 9:12 PM

The file will be changed regularly and I don't want to move it manually each time. I think I'll just copy it over with a cron job on a regular basis. 

Thanks for your help.