I'm new to modx and currently develop my first website under Revo 2.2. Sometimes I love it and sometimes I pull my hair off my head, mostly because of the code editing workflow. Having to edit everything from the admin and reload the front-end makes it super slow while going through a trial and error method. So I use a few methods to go around it.
- If I need to edit code directly from the browser (almost never happens), I use Quickcursor (
https://github.com/jessegrosjean/quickcursor"" target="_blank" rel="nofollow">git). It grabs the code, and opens it in my favorite text editor. Save and close the text editor window, the code is injected back into the browser. I'm using it to write this post. Neat

It's on Mac only, if you don't want to compile the app, get it from the
http://itunes.apple.com/fr/app/quickcursor/id404035899?mt=12"" target="_blank" rel="nofollow">Mac App Store. For Windows users, there is a Firefox extension that does the same but I can't find its name right now.
- My favorite is
https://github.com/digitalbutter/FEM#readme"" target="_blank" rel="nofollow">FEM, an extension written by DigitalButter. It mirrors a directory structure of chunks, snippets and templates on the file system into modx Revo. It creates whatever needs be created and updates whatever changed. It even creates categories and TVs for you. One install modx was corrupted and using FEM, it took me two seconds to recreate all my snippets, chunks, templates, categories and TVs. Awesome!! It's in alpha version but its very solid. Digital Butter wrote
https://github.com/digitalbutter/MODX-Mirror"" target="_blank" rel="nofollow">modx Mirror which replaces FEM and which I'll use once I figure out how to make a transport package (if anyone knows how to, please feel free to share). I still wonder why FEM/Mirror wasn't submitted for inclusion in the modx extras website.
- Lastly I use the
https://forums.modx.com/thread/73493/development-workflow#dis-post-408387"" target="_blank" rel="nofollow">method pointed out by Lucas. I wrote a helper snippet which I call from snippets, chunks or templates (uncached!). Inclusion path are preconfigured so I only pass the file name, not the path. I noticed that in some rare cases modx cache needs to be emptied manually.
Combine this with FEM/Mirror and you almost never need to go back to the admin anymore for code editing.
Hope this helps.
Jerome
[ed. note: yogooo last edited this post 14 years, 9 months ago.]