We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3749
    • 24,544 Posts
    Where, exactly, is the tag (template, page content, tv, chunk, etc.)?
      Did I help you? Buy me a beer
      Get my Book: MODX:The Official Guide
      MODX info for everyone: http://bobsguides.com/modx.html
      My MODX Extras
      Bob's Guides is now hosted at A2 MODX Hosting
      • 13428 ☆ A M B ☆
      • 1,031 Posts
      Quote from: jmbuytaert at Mar 07, 2016, 08:36 PM

      This is also happening for me. My snippet [[!snippet? &get=`test`]] is being called twice (it's logging twice in a row in the error log), even though I'm only calling it once. Has anyone figured out why this is happening? My guess is there's something funky with the MODX Cloud caching (maybe?).

      Do you use a description field in the template that is somehow filled with the content? Are snippet calls filtered away in that field before they are executed?
        • 37619
        • 79 Posts
        Quote from: BobRay at Mar 08, 2016, 12:33 AM
        Where, exactly, is the tag (template, page content, tv, chunk, etc.)?

        I have a Template calling a [[$chunk]] using mmlCache. The [[$chunk]] is calling the [[!snippet? &get=`test`]].

        For some reason, [[!snippet? &get=`test`]] is being parsed twice.
          Jean-Marc Buytaert (@jmbuytaert)

          MODX truly is the greatest thing that's ever happened to the Internet.
          • 3749
          • 24,544 Posts
          You might file it as an issue here.
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 37619
            • 79 Posts
            Quote from: Jako at Mar 08, 2016, 04:50 AM
            Quote from: jmbuytaert at Mar 07, 2016, 08:36 PM

            This is also happening for me. My snippet [[!snippet? &get=`test`]] is being called twice (it's logging twice in a row in the error log), even though I'm only calling it once. Has anyone figured out why this is happening? My guess is there's something funky with the MODX Cloud caching (maybe?).

            Do you use a description field in the template that is somehow filled with the content? Are snippet calls filtered away in that field before they are executed?

            This is what I have. I hope this answers your question.

            Template
            [[!mmlCache?
              &element=`pdoResources`
              &parents=`0` 
              &resources=`[[*id]]` 
              &tpl=`chunk` 
              &includeTVs=`[[mmlGetTemplateTVs]]` 
              &prepareTVs=`1` 
              &processTVs=`1`
              &includeContent=`1`
              &tvPrefix=`` 
              &loadModels=`migxmultilang`
              &prepareSnippet = `mmlTranslatePdoToolsRow`
            ]]


            Chunk [[$chunk]]
            [[!snippet? &get=`test`]]
              Jean-Marc Buytaert (@jmbuytaert)

              MODX truly is the greatest thing that's ever happened to the Internet.
              • 37619
              • 79 Posts
              Quote from: BobRay at Mar 08, 2016, 12:16 PM
              You might file it as an issue here.
              Thank you Bob. I'll check it out.
                Jean-Marc Buytaert (@jmbuytaert)

                MODX truly is the greatest thing that's ever happened to the Internet.