I'm passing a variable to another modx resource in a URI. For example, ".../index.php?=8&varID=1"
I want to use the variable in a snippet that runs on this targeted resource page. How do I pass the variable value to the snippet? Or in other words, how do I capture the variable value passed in the URI for use in the snippet?
Rev 2.2.4
edit: Duh, resolved this myself. Thought it was necessary to use some modx function to capture uri passed variables, but not at all. Just use a php request before the call in the snippet, eg:
$row_id = ($_REQUEST['row_id']);
[ed. note: puffin2 last edited this post 11 years, 9 months ago.]