-
- 75 Posts
I found that it is not possible to use the variable {core_path} when creating the media sources. If I try this modx creates the directory named {core_path}components.
Web-accessible media such as images and files shouldn't be in the core in the first place. That should be in assets, or some other directory, but not the core.
The only directories in the core that should be writable are core/cache, core/components and core/packages, and they shouldn't have anything in them that will need to be accessed from the browser.
-
- 75 Posts
Thank you sottwell, but this is not an answer. I want to use media sources routes to store and update snippets and plugins in the core/components. I don't want to store them in the db.
You can use [[++core_path]]components/whatever/, but you have to set the BasePathRelative to 'No'