We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28883
    • 35 Posts
    woutercouvaras Reply #1, 12 years ago
    Hi, I saw one other (really old) question similar to mine, but there was no answer...I wonder if anyone can help?

    I'm currently passing variables from one page to another by using $_get... The value I'm currently sending is in an href.

    Is there a way to do this in modx - I'm using the latest version of revo?

    Thanks a stack!

    This question has been answered by BobRay. See the first response.

    • discuss.answer
      • 3749
      • 24,544 Posts
      $_GET works fine, but you have to use a MODX link tag to create the links (which you should be doing for all links anyway).

      If you're sending them to the page with a resource ID (in parentheses in the Resource tree) of 12, for example:

      <a href = "[[~12? &propertyName=`value`]]"> Link Text</a>


      Make sure the value is in back-ticks, not single quotes.


      ------------------------------------------------------------------------------------------
      PLEASE, PLEASE specify the version of MODX you are using.
      MODX info for everyone: http://bobsguides.com/modx.html
        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
        • 28883
        • 35 Posts
        woutercouvaras Reply #3, 12 years ago
        Thanks Bob Ray,

        That is exactly what I was looking for!

        All the best!