I am having issues with Revo 2.2.6 where a chunk taking a snippet in a parameter isn't working.
Following content (in template that is only [[*content]]:
[[!sql? &tpl=`cnt` &query=`SELECT name as cnt from modx_pcm_companies WHERE companies_id='27'`]]
[[$testChunk?
&newModalId=`addPMC`
&middleHeaderUnits=`PMCs`
&showThirdBox=`0`
&middleHeaderTitle=`[[!sql? &tpl=`cnt` &query=`SELECT name as cnt from modx_pcm_companies WHERE companies_id='27'`]]`
]]
Outputs:
SELECT name as cnt from modx_pcm_companies WHERE companies_id='27'
addPMC
PMCs
0
Right now, sql snippet is just:
<?php
return $output . $query;
And test chunk is:
[[+newModalId]]
[[+middleHeaderTitle]]
[[+middleHeaderQty]]
[[+middleHeaderUnits]]
[[+showThirdBox]]
Why won't the snippet return show up in the chunk (line 2)?