We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 47308
    • 68 Posts
    Is there any value to maintaining your elements outside of the Modx database, in folders and files? Is there a way to easily accomplish this? I find the Modx element navigation clunky and I do not like editing code inside the Modx window. I am using Ace as a rich text editor but it's still not as good as something like Coda or Sublime Text.

    Is anyone doing this? I worry uploading the code to the database and keeping it in synch with the code in the files.

    This question has been answered by sottwell. See the first response.

    • discuss.answer
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      That's what the "is static" checkbox is for. All elements can be static elements and you can put the files wherever you like. If you open the element, the file's contents will be displayed in the editing field.
        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
        • 37242 ☆ A M B ☆
        • 339 Posts
        Oh, I could use this, too. Thank you for the info!
          • 47308
          • 68 Posts
          That's great to know. Is there a way to set a custom basepath or document root?

          Also, what are your thoughts on StaticSaver? It looks like a labour saver but it only has 560 downloads.
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Yes, static elements respect Media Sources.

            As far as StaticSaver, I've never used it, so I have no thoughts on it. But then I'm perfectly happy with using MODX and Ace as my IDE.
              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