We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14605
    • 40 Posts
    I have a problem with a modx fundamental

    I am sure it is something I am overlooking so i need some fresh eyes on it...

    i have a snippet called testing

    <?php
    echo "testing " . $param;


    when i call it without a param, it works fine

    [[!testing]]


    prints...

    testing 


    however, when i add a parameter to the snippet call...

    [[!testing &param=`hello`]]


    then nothing is printed (so the snippet is not getting called?)...

    clearly i would expect the following output:

    testing hello


    help would be appreciated, i know there is an embarrassingly simple answer to this huh
      • 4172
      • 5,888 Posts
      try

      [[!testing? &param=`hello`]]
      

      or

      [[!testing?param=`hello`]]
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 14605
        • 40 Posts
        I missed the question mark!!

        Thanks Bruno!!