We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4786
    • 17 Posts
    Hi,

    Have found what may be a problem with parsechunk. Or my local config....

    http://modxcms.com/forums/index.php?topic=6483.0

    If I create and run the snippet / chunk example in the last message of the above forum topic (have changed curly brackets to square, apart from that it is exactly as-is) I get the following output...


    The tramp made friends with a yellow cheesy pig.

    The tramp made friends with a .


    Seems that parsechunk may be inserting an extra line in the array?

    Be interested to see if anyone else can replicate the problem. One for someone with more php expertise than me I think!

    Thanks,
    Mark
      • 4786
      • 17 Posts
      ...as a follow up, tried it with placeholders & getchunk, result is the same - any static content just gets repeated.

      I’m using MAMP
      MODx version 0.9.6.3
      Version codename rev 4565

      Cheers, Mark
        • 10487 MODX Staff
        • 1,535 Posts
        Can you post the exact code you have? I’m not following the two outputs you have provided, are you trying to run this snippet twice on the same page?
          Garry Nutting
          Senior Developer
          MODX, LLC

          Email: [email protected]
          Twitter: @garryn
          Web: modx.com