Hi everyone
I am just buildingup my own template and I face a minor problem which I couldn't figure out how to solve.
So, basically in my CSS file there are few background images and the source for these images is set correctly to the right source (ex url(uploads/images/site/bg.gif) repeat-x;).
When I load the page in the browser, the background image does not show up and the source in CSS file looks like this url("http://localhost/cmsmadesimple/tmp/cach ... ite/bg.gif)
This is only in cases when I use images in CSS. Images used in the HTML templates are OK.
I would really appreciate someone helping me out with this problem. Why does the image source URL point to the tmp directory instead of the one I actually specified in my CSS file? What I am missing here?
Thank you
sherlock
CSS background image src URL .../tmp/cache/...
Re: CSS background image src URL .../tmp/cache/...
Your problem could be version 1.8 or 1.8.1 where stylesheet is cached and placed in tmp folder.
Use [[root_url]]/uploads/images/yourimage.gif
Use [[root_url]]/uploads/images/yourimage.gif
Re: CSS background image src URL .../tmp/cache/...
thank you uniqu3
yes, indeed I use version 1.8 and your solution just solved mu problem
I really appreciate your support
lot of thanks
yes, indeed I use version 1.8 and your solution just solved mu problem
I really appreciate your support
lot of thanks
- micahgodbolt
- Forum Members
- Posts: 149
- Joined: Thu Jul 29, 2010 11:09 pm
- Location: Portland, OR
Re: CSS background image src URL .../tmp/cache/...
i had the same issue, and just did /../../images/file.jpg - this does the same thing of getting you back to the root folder from where that css file is stored.
Re: CSS background image src URL .../tmp/cache/...
Sherlock, would you please be so kind and put [Solved] in the title of the first post?sherlock wrote: thank you uniqu3
yes, indeed I use version 1.8 and your solution just solved mu problem
You can use the 'modify' button for this.
Thanks, Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: CSS background image src URL .../tmp/cache/...
With the new cms_stylesheet tag you can also use (/uploads/bla bla) instead of [[root_url]]/uploads...
Re: CSS background image src URL .../tmp/cache/...
This forum is terrific. One shot one hit.
- micahgodbolt
- Forum Members
- Posts: 149
- Joined: Thu Jul 29, 2010 11:09 pm
- Location: Portland, OR
Re: CSS background image src URL .../tmp/cache/...
Can you post a link to the site you are working on? One thing you want to make sure of is that your stylesheet call is {cms_stylesheet} and not the older {stylesheet}.
Re: CSS background image src URL .../tmp/cache/...
Just to be sure [[root_url]]/uploads/images/image.jpg will be fine to transfer to the live server won't it? and out of interest once the website is installed on a live server would I be able to neglect the [[root_url]]/ command or as I seem to be finding out does the {cms_stylesheet} tag always require the full path to an image?