We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23360
    • 258 Posts
    Hello,
    I created a snipest called "room" and inside of the snipest i have a varibale called "obj"

    And I call like this [[room]].

    But it is possible to do as a $_get[’obj’]?

    for exemple [[room?obj=room1]]

    and then in my snepest I will catch the obj and obj will take the value of room1?

    This will help a lot and avoid to create a snipest for each room

    Many thank for your suggestion
    Pierre
    • Parameter values automatically become available in your snippet code as simple variables with the same name. So your &obj=`room` parameter will become a variable $obj, with the value of "room".
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org