Hi. I’m using the ’user-selectable chunks’ method detailed the wiki, and the chunkListParser snippet is rendering out my chunks. But some of my chunks contain further snippets (Ditto), and these are not being parsed, but being rendered out as text. I assume that snippets are processed after chunks, and there is only one round of processing.
How could I apply a further round of chunk processing - either to the whole document, or perhaps instructing the chunks to render from within the chunkListParser snippet?
Incidentally, I come from a Frontier background, where one of the first customisations is often to apply a second round of processing to the entire document to deal with cases like this.
TIA
-
MODX Staff
- 10,725 Posts
For now, the snippets have to make this pass themselves, using one of the internal parser methods. In the 0.9.7 release and moving forward, we will have full recursive parsing capabilities in all elements (chunks, snippets, placeholders, etc.), so this will not be necessary.
try caling the outer snippet uncached [!snippet!] , and the dittocall cached [[snippet]] that workes for me.
Dimmy