Jump to main content Jump to doc navigation
Note: The @EVAL binding has been deprecated and removed in MODX 3.0.

The @EVAL binding was present in earlier versions of MODX and allowed executing arbitrary code to populate a template variable.

Due to the related security concerns, this has been removed in 3.0.

As an alternative, you can use a @SELECT, @CHUNK or @SNIPPET binding, where the last two could be used to for example run a snippet.

Support the team building MODX with a monthly donation.

The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.


  • modmore
  • Jens Wittmann – Gestaltung & Entwicklung
  • Fabian Christen
  • Dannevang Digital
  • Digital Penguin
  • Sepia River Studios
  • CrewMark
  • Chris Fickling
  • deJaya
  • Following Sea
  • Anton Tarasov
  • eydolan
  • Raffy
  • Lefthandmedia
  • Murray Wood
  • Snow Creative
  • Nick Clark
  • Helen
  • JT Skaggs
  • krisznet
  • YJ
  • Yanni
  • Richard


$370 per month—let's make that $500!

Learn more