You are here:  » Magic Parser and Modx

Magic Parser and Modx

Submitted by jackrowlands on Thu, 2014-11-27 01:07 in

Has anyone ever done anything with Magic Parser and modx.

Im trying to use this within a snippet and return the output into a Chunk.


Submitted by support on Thu, 2014-11-27 10:00

Hello Jac,

I'm not familiar with Modx i'm afraid but if it has the capability (or maybe a plugin) that enables you to execute arbitrary PHP code within a snippet / chunk then it would be no problem to include MagicParser.php (make sure to use require_once() rather than require() if there are likely to be multiple instances on a page) and output accordingly.

As an example, if one were working in WordPress, the Exec-PHP plugin can be used to execute arbitrary PHP code within a post, so Modx may have something very similar, if not supported natively.

Hope this helps!