Page 2 of 2
Re: css not showing up?
Posted: Tue Jan 25, 2011 6:29 pm
by wms
Never ran into issues until now. Been using CMSMS for almost 5 years now. I was thinking maybe some permissions have changed from one server to the next. I'll ask the host.
Re: css not showing up?
Posted: Tue Jan 25, 2011 6:39 pm
by wms
...ahh....new server, new address:
http://208.68.104.129/wms/sunsetnursery...duh!!
Ok, I'm going to comment out the caching section of the stylesheets.php and go with that as a solution for me on my end:
[removed by moderator]
Cheers,
Re: css not showing up?
Posted: Tue Jan 25, 2011 6:43 pm
by calguy1000
There's a setting in the global settings to adjust the 'max age' integer.
The {stylesheet} tag is deprecated, and replaced by {cms_stylesheet} that should be used as it provides for real caching, instead of using etags and cruft.
the only problem with {cms_stylesheet} as compared to {stylesheet} is that it changes the relative directory for images embedded in the CSS.
Re: css not showing up?
Posted: Tue Jan 25, 2011 6:46 pm
by wms
Thanks CalGuy,
Is it bad to stick with {stylesheet}, or should I change my sites over to use {cms_stylesheet}? What do you mean by changing the relative directory for images.
Thanks,
Re: css not showing up?
Posted: Tue Jan 25, 2011 6:49 pm
by calguy1000
the {stylesheet} tag had the relative directory of <site root>
the {cms_stylesheet} tag places .css files in the tmp/cache directory
Therefore stuff like: url(uploads/some_image.jpg) will have to be changed to url([[root_url]]/uploads/some_image.jpg) or url(/uploads/some_image.jpg);
Re: css not showing up?
Posted: Fri Mar 11, 2011 1:28 pm
by enigma7
Ok I tested in my case and it works opposit way - I had to remove all [[root_url]] and left "/" and at the begining of theme sheet I changed {cms_stylsheet} again to {stylesheet} and it works fine!
Re: css not showing up?
Posted: Tue Mar 15, 2011 2:28 pm
by totophe
[[root_url]] ment "place your real url here" btw.
Re: css not showing up?
Posted: Thu Mar 17, 2011 8:21 pm
by Dr.CSS
@totophe
Actually no it doesn't "place your real url here" it looks in the config.php for the URL and adds it to the style sheet...
Re: css not showing up?
Posted: Fri Mar 18, 2011 8:59 am
by totophe
Ah ok. Why not using smarty like tags then?