Page 1 of 1

[Solved]How to call stylesheet

Posted: Thu Sep 08, 2011 6:00 am
by jasnick
Using CMSMS 1.9.4.3.

What is the difference between using {stylesheet} and {cms_stylesheet}

I know the latter needs something added to the path to images - which is more correct?

Thanks

Re: How to call stylesheet

Posted: Thu Sep 08, 2011 6:06 am
by uniqu3
{stylesheet} is old method and will be removed so you should use {cms_stylesheet} which also caches your stylesheet in cache folder.

Re: How to call stylesheet

Posted: Thu Sep 08, 2011 6:18 am
by jasnick
Yes, I thought that was the case as it appears in the latest version of CMSMS.

Does this mean that if I have the old version {stylesheet}in other sites, and I upgrade to 1.9.4.3, I will have to go and change all the image paths?

I am really not technical. If I have the following line in body:
background:#eeeee7 url([[root_url]] uploads/images/site/bodybg.png) no-repeat center 200px;

is that it, or do I have to replace root_url with something and if so, what?
Edit - I think I've got it - I added a forward slash in front of uploads.