stylesheets and js files not found when installed in sub application

Apr 29, 2013 at 4:32 PM
Edited Apr 29, 2013 at 4:35 PM

I am working on a site, It has been created using Orchard CMS.

I have put mvc forums in the /forums folder.

As it is in a sub folder, the styles and js files aren't found, basically because the src paths in the relevant link tags are hardcoded. Ie, they don't use Url.Content(...).

As a result, the links point to:

instead of:

The layout pages aren't in the sample site source, so I can't edit them. What can I do?
May 8, 2013 at 5:45 AM

Sorry for not getting back to you earlier!

MVC Forum was never built to run in a virtual directory (that's what you're doing, right?) and haven't been tested in that enviroment.

MVC Forum runs out of the /forum area. I have no experience with Orchard, so I don't know how these 2 will play along.

All the view are embedded in the web assembly. You can download the source and you'll find all the cshtml files in the areas/forum/views folder. You can pull these out and place in a regular views folder, and MVC Forum will use those instead.