Hi,
Anyone any ideas how I can change the path used for an image.
I currently have a context set up for a subdomain which works fine. But when I try to insert a image the sub domain directory is being included.
So for example i’d get a relative path like
mysubdomain/assets/images/myimage.jpg
But as the mysubdomain folder is set as my root i don’t need that in the url, what I actually need is:
/assets/images/myimage.jpg
Thanks
Ben
-
☆ A M B ☆
- 179 Posts
When I include an image via TinyMCE I get these double slashes before "images".:
http://subdomain.domain.com/assets/user//images/people.jpg
The "MODx RESOURCE BROWSER" shows only "broken" images (no previews) but the TinyMCD window "Insert/edit image" displays the image correctly but inserts it with the "//".
My settings are:
assets_url http://subdomain.domain.de/assets
base_url /
http_host subdomain.domain.com
site_url http:// subdomain.domain.com
setting_filemanager_path /customers/htdocs/domain.com/subdomain/assets/user/
setting_filemanager_url http://subdomain.domain.com/assets/user/
The core run ins "/customers/htdocs/domain.com/cms/", the subdomain is a context and stored at "/customers/htdocs/domain.com/subdomain/".
Any idea?