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
    I tested it. Everything comes through fine except &param2. I can’t get it to show even if wrapped in a comment.

    More good news is that the new parser is also insensitive to whitespace around the equals signs.

    I did see some weirdness in the editor though. After saving and reloading the document, the snippet call is rendered as:

    [[Foo?
      &parents=`1,2,3,4`
      ¶m = `Look at the cool extra-special characters & stuff = niceness, eh?`
      ¶m2 = `[[another?snippet=`even with cached inside cached`]]`
      & question = `for Jason: will this line work?`
    ]]


    This happens with or without the space around the equals signs.

    In spite of this, the call still works! Is this from "param" being a reserved word?

    &myparam doesn’t get transformed.
      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
      • 22303 MODX Staff
      • 10,725 Posts
      Quote from: BobRay at May 03, 2008, 03:15 PM

      I tested it. Everything comes through fine except &param2. I can’t get it to show even if wrapped in a comment.
      Did you write a snippet called another that takes a parameter called snippet?

      Quote from: BobRay at May 03, 2008, 03:15 PM

      I did see some weirdness in the editor though.
      ...

      In spite of this, the call still works! Is this from "param" being a reserved word?

      &myparam doesn’t get transformed.
      That’s very odd; by editor, you do mean TinyMCE and not just in the plain textarea, correct?
        • 3749
        • 24,544 Posts
        Quote from: OpenGeek at May 03, 2008, 05:53 PM

        Quote from: BobRay at May 03, 2008, 03:15 PM

        I tested it. Everything comes through fine except &param2. I can’t get it to show even if wrapped in a comment.
        Did you write a snippet called another that takes a parameter called snippet?

        Quote from: BobRay at May 03, 2008, 03:15 PM

        I did see some weirdness in the editor though.
        ...

        In spite of this, the call still works! Is this from "param" being a reserved word?

        &myparam doesn’t get transformed.
        That’s very odd; by editor, you do mean TinyMCE and not just in the plain textarea, correct?

        No, not TinyMCE . . . Editor to use: none.

        It’s definitely the word "para" (not "param" as I thought earlier) because &parameter2 gets transormed into ¶meter2

          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