SyntaxChecker

Creator: Everett Griffiths (everettg_99)

Need help installing this extra?

About SyntaxChecker

This plugin performs validation checks on your Resources, Templates, Chunks, and Template Variables as they are saved and alerts you to any errors via a pop-up modal window.  

How many times have you spent hours debugging a snippet only to discover that you had forgotten a back-tick?  This plugin ensures that your pages parse the way they're supposed to.

Put an end to syntax madness!!!

Information

Released
June 18, 2013

Supported Database
MySQL, SQL Server

License
GPLv2

Supported Versions
2.1 - Current

Downloads
5,231

Instructions

This is a simple installation: after downloading the package, install it.  This should create and activate the SyntaxChecker plugin.  The plugin is fired on the following events:

  • OnBeforeDocFormSave
  • OnBeforeChunkFormSave
  • OnBeforeTVFormSave
  • OnBeforeTempFormSave

You can customize the plugin behavior by removing any of those events (edit the plugin, then uncheck the events under the System Events tab).

Once you've installed the plugin, every time you save a Page, Template, or Chunk, the tag syntax will be checked and you will be alerted to any errors.  (See the screenshots).  Error messages will also be sent to the MODX error log (Reports --> Error Log).

New in 0.5.0-beta

Fixed issues #1 and #2 relating to "void" tags, e.g. [[~]] and empty parameters, e.g. ¶m=``

Current releases

0.5.0-beta
View | Download
June 18, 2013
2.1 - Current