We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38015
    • 4 Posts
    Hey, I've just started looking in developing sites with MODX and figured it would be easier for me to code up the templates in my favourite editor Vim and then cut and paste them into the MODX Manager.

    I didn't like the fact Vim and it's HTML highlighting didn't recognise the weird syntax of the MODX tags and so I took the opportunity to try my hand at extending Vim to support the MODX tag syntax:

    https://github.com/rosstimson/modx.vim


    I'm both new to MODX and to customising Vim but I believe it's a decent start. If any of you use Vim I'd love to hear your feedback; it's only been tested on very basic templates whilst I learn MODX so I'd be especially interested to hear how it behaves with larger, more complicated templates.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      You can specify (in Revo, that is) that the template is "static", and it will ask you for a path to the file and load that file as the template code. So no need to copy/paste anything, just edit the file.
        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
        • 38015
        • 4 Posts
        Thanks for the tip Susan, I'll keep an eye out for that.