We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36788
    • 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.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 36788
        • 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'
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org