I am trying to create a theme for Orchard CMS. The template I had was not created for this, so I have some problems displaying images from Layout.cshtml.
This is the current folder structure on my web server (only theme folder structure):
Theme / Content / Images / Image.jpg Theme /Views/Layout.cshtml Theme / Styles / site.css
The following line does not display the image (located in Layout.cshtml):
<img src="../Content/Images/bgBig.jpg" alt="Big background image" />
However, this line displays the image (located in Site.css):
background-image:url('../Content/Images/bgLines.png');
I believe the problem is that Layout.cshtml does not display the image from the /Views/Layout.cshtml theme, but from a different place. If someone knows what will be in this place or how to redefine it, I would be grateful.
PabloPeškobar
source share