Aug 10, 2013 at 4:27 PM
Edited Aug 10, 2013 at 4:53 PM
I had started creating a new theme while using v1.6.1.
things were not going well with a custom module creation so i decided to start from scratch. this time I am using the source from V1.7
I copied my custom theme folder, pasted it into the themes folder of the new 1.7 project and ran the site. I could see the theme in my dashboard so set it to the current theme.
now when i view my site NONE of the images are loading. the style sheets are loading, though none of the images - either from the style sheet or from any views - are loading.
my images are in myTheme/content/images - which as i understand it is how 1.6.1 required things to be laid out.
My content folder has a web.confg as does my images folder. it's the same config used in 1.6.1 so i'm wondering if something has changed.
In one of my theme views I have the following code - this worked in 1.6.1:
<img src="@Url.Content(Html.ThemePath(WorkContext.CurrentTheme,"/Content/Images/phoneBullet.png"))" alt="T:" />
If i output this to my front-end i get:
This tells me things appear to be in the correct place - though i'm wondering if my web.config is now out of date?
I have this - there is a copy in content and a copy in images:
<?xml version="1.0" encoding="UTF-8"?>
<add key="webpages:Enabled" value="false" />
<!-- iis6 - for any request in this location, return via managed static file handler -->
<add path="*" verb="*" type="System.Web.StaticFileHandler" />
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="7.00:00:00" />
iis7 - for any request to a file exists on disk, return it via native http module.
accessPolicy 'Script' is to allow for a managed 404 page.
<add name="StaticFile" path="*" verb="*" modules="StaticFileModule" preCondition="integratedMode" resourceType="File" requireAccess="Read" />
Ok - so if i use Visual Studios internal dev server then it's all good. If i use Local IIS Express (http://localhost:30333/) then it doesn't work.... any ideas?
Ok - I have also set up in IIS 7 and again images are not loading...