We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19593
    • 7 Posts
    Can anyone explain how to add query parameters in a chunk to [[~id]] tag?
    I tried something like <a href="[[~id]]&parameter=value">link</a> but it doesn’t work.

    Thanks.
      • 28215
      • 4,149 Posts
      splittingred Reply #2, 16 years ago
      [[~id? &param=`value` &another=`val`]]
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
        • 19593
        • 7 Posts
        Thank you very much for your reply! But I don’t understand what’s wrong. I copied the example in my chunk, but the result was http://mysite/index.php instead http://mysite/index.php?param=value&another=val
        What’s wrong?!

        (I use MODx Revolution 2.0.3-pl)
          • 19593
          • 7 Posts
          I found the problem smiley Just I need to use [[~[[*id]]? &param=`value` &param2=`value2`]]. That works fine smiley