Edit: See Yama's reply for a Core patch/hotfix.
I'm not sure if 1.0.9 has a new parsing engine, but the following code no longer works:
[[Ditto? &config=`@FILE {{template-path}}config/ditto/myconfig.php`]]
In previous version of MODX, the chunk {{template-path}} would be evaluated first, and then passed to the Snippet as a parameter.
In version 1.0.9, it seems that the raw value {{template-path}} is passed through, which causes Ditto to try to include() a file with a totally incorrect path like this:
/var/www/mysite/{{template-path}}config/ditto/myconfig.php
when it really should look like this:
/var/www/mysite/correct/template/path/config/ditto/myconfig.php
I can easily fix Ditto to first parse the &config parameter, but that's a core change I would prefer not to do.
My only workaround is to completely avoid using a chunk in the snippet parameter.
Can anyone shed light on this issue?
[ed. note: atmmarketing last edited this post 10 years, 11 months ago.]