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
Hi

I am working on a site, mysite.com. 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:

mysite.com/content/css/bootstrap/bootstrap.css

instead of:

mysite.com/forums/content/css/bootstrap/bootstrap.css

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

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.