We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19529
    • 3 Posts
    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
      • 22303 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.
        • 7455
        • 2,204 Posts
        try caling the outer snippet uncached [!snippet!] , and the dittocall cached [[snippet]] that workes for me.

        Dimmy
          follow me on twitter: @dimmy01
          • 19529
          • 3 Posts
          The cached/uncached advice worked. Thank you. smiley

          And that’s good news about the fully recursive elements - it’s what I expected, especially given how comprehensive the framework seems to be.