Page 1 of 1

[SOLVED]How to set a global variable for background paths?

Posted: Tue May 14, 2013 10:14 am
by blackhawk
Within CMSMS 1.11.6, I have the following background property in my style sheet:

Code: Select all

background: url(/dev/uploads/images/socialbar.gif) no-repeat;
But is it possible to do something like this in the style sheet...

Code: Select all

background: url({$bgpath}/socialbar.gif) no-repeat;
...without breaking anything and keeping the front-end code valid?

Thanks

Re: How to set a global variable for background image paths?

Posted: Tue May 14, 2013 10:35 am
by Rolf

Re: [SOLVED]How to set a global variable for background path

Posted: Tue May 14, 2013 5:44 pm
by Dr.CSS
You should not need the /dev/ part in image URL calls, {cms_stylesheet} takes [[root_url]]/uploads/../... or ../../uploads/../...