Page 1 of 1

One issue with paths - I'm just curious...

Posted: Thu Dec 16, 2010 10:03 am
by Sponsi
Is there a way to have internal links in CSS styles for images?
From edition I guess 1.8 instead of

Code: Select all

blabla url(uploads/images/background.jpg)
I have to give the full path

Code: Select all

url(http://mysite.tld/uploads/images/background.jpg)
why is it so?


Thanks in advance.

Re: One issue with paths - I'm just curious...

Posted: Thu Dec 16, 2010 10:13 am
by Dr.CSS
First way, url(uploads/path/image.jpg) is when using {stylesheet}...

Second way, {cms_stylesheet} needs (/uploads... or ([[root_url]]/uploads...

Re: One issue with paths - I'm just curious...

Posted: Thu Dec 16, 2010 3:04 pm
by Wishbone
or [[uploads_url]]/images

Re: One issue with paths - I'm just curious...

Posted: Thu Dec 16, 2010 3:57 pm
by Sponsi
Dr.CSS in fact, it doesn't work with "/"... but it works without it.
I'll use {stylesheet} then.
I didn't know the co-relation of the settings.
That's much better now - especially when moving a site : )

Thanks people.