[[!pdoResources?
&parents=`19`
&depth=`2`
&showHidden=`1`
&sortby=`{"menuindex":"ASC"}`
&includeTVList=`menutitle,menuDescription,id,longtitle`
&tvPrefix=``
&tpl=`@CODE <li><a href="[[~[[+id]]]]" title="[[+longtitle]]">[[+menutitle]] | [[+menuDescription]]</a></li>` // If I replace this with the chunk name, all is well
]]This question has been answered by sottwell. See the first response.
Try it with a chunk tpl instead of inline. MODX can get unhappy with tags nested too deeply.@CODE is a little iffy anyway. I've learned to only use it for extremely simple tpls.