Hello everyone, I'am new in modx, right now i am making my first project on this CMS.
I have a question about path in CSS file.
My template path is:
/assets/templates/template
It contains css, js files and pictures.
Main css file called
main.css and its path is
/assets/templates/template/main.css
I have a problem with path inside this css, for example I write this code:
background-image: url(img/bg.jpg);
And I expect to see an image located here:
/assets/templates/template/img/bg.jpg
But, when I saw a sourse code of a page, I see this path:
modx/img/bg.jpg, where modx, as I correctly understand is a
[[++site_url]]
In my template I have this line of code:
<base href="[[++site_url]]" />
So, I need to write a full path for my image for its work.
background-image: url(assets/templates/comfortable-house/img/bg.jpg);
But, I think its not good way.
Is it possible to write path regarding the palcement of my css file?
P.S. I am not a fluent english speaker, sorry for my mistakes.