css not showing up?
Re: css not showing up?
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?
...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,
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,
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: css not showing up?
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.
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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: css not showing up?
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,
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,
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: css not showing up?
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);
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);
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: css not showing up?
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?
[[root_url]] ment "place your real url here" btw.
Re: css not showing up?
@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...
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?
Ah ok. Why not using smarty like tags then?