I’m wondering if the problem could be related to the fact that I’m using external files as templates: my template files are in /sites/site2, the hierarchy is this:
modx
|- (modx default folders)
|- sites
|- site2
|- mytpl.html
|- css
|- mycssfiles.css
|- img
|- myimgfiles.png
so my template files have relative paths to img and css files, ex:
<link rel="stylesheet" type="text/css" href="css/mycss.css" />
but modx puts link related to the modx root folder. If my template was in the DB, I would use full relative paths like this for it to work:
<link rel="stylesheet" type="text/css" href="sites/site2/css/mycss.css" />
and so the links from the file manager would have the same relative root and I think would have no problem with the paths anymore ?