Open bertoost opened 12 years ago
bertoost submitted:
Just discoverd that when setting the relative settings to NO/false that the file tree in the leftside panel isn't working (logical after all).. So don't know how, but this is something what should be overlooked!
bertoost created Redmine issue ID 7694
On my development machine I have setupped MODX in several subfolders (one for each project) and now I found and issue with an image TV.
I have setupped my Media Source with relative paths. Before the screenshot (attached) the relative settings where set to Yes/true and that makes the path of the TV value generated containing the /subfolder/ path. That isn't right, because I have set the relative settings to true, which means in my opinion that the paths are relative to the base_path/url of the MODX install.
Besides this missunderstanding of this setting it will work well, but when you add phpthumbof for example this will raise an error because phpthumbof adds the base_path again and that will make the /subfolder/ twice in the URL and that isn't right!
After some research this paths are generated in the prepareOutputUrl() function inside core/model/modx/sources/modfilemediasource.class.php