The base url should match the current installations location, i.e. "http//localhost..." and not the site_url which is probably pointing somewhere else where the css and images are currently not located.
How are you referring to your css and image files? Are you using absolute references or what?
"Great spirits have always encountered violent opposition from mediocre minds." -Albert Einstein
I’m using relative paths. For example, <link rel="stylesheet" type="text/css" href="assets/templates/somesite/css/styles.css"/>
Could there be something in the ht.access file that needs adjusting? Could it be a local setting that’s off? It seems so simple but I can’t understand why it’s not working.
Not to say this would work, but try using the leading forward slash (i.e. /assets/etc). It may be an htaccess issue; I’ve had issues before with the FURLs part of the htaccess file adding in forward slashes.
Also, take a look at your source code when it works (w/out base href) and also when it doesn’t work (with base href) and see if the links are showing up differently.
"Great spirits have always encountered violent opposition from mediocre minds." -Albert Einstein
Newish user here as well.
The documentation recommends using:
<base href="[(site_url)]"></base>
not
<base href=”[(site_url)]” />
Maybe that is what is causing your issues?
Thanks everyone. I tried your suggestions but nothing seems to help. I’m starting think I may have a cache issue because when I apply a new template and refresh the page/preview it still shows the previous template, still without css. I’ve triple checked the css path so I don’t know what’s happening.
Quote from: Todd at Apr 30, 2009, 12:25 PM
Thanks everyone. I tried your suggestions but nothing seems to help. I’m starting think I may have a cache issue because when I apply a new template and refresh the page/preview it still shows the previous template, still without css. I’ve triple checked the css path so I don’t know what’s happening.
Are you clearing both the MODx cache and your browser’s cache?