Im just getting into MODx and really enjoying it - but still not fully confident in how all the bits fit together, so i’m imagining this is actually a very simple question and would appreciate some help as to how it works! Heres my problem:
I have a list of members for a site, who are all located in different regions.
Regions are stored in the database in the ’modx_web_user_attributes_extended’ table under a ’region’ column with numerical values 1-5.
I want public visitors to the site to be able to see what members are in the each region and for that i have created a map with clickable areas.
I want to call the list, filtered by the region they have chosen when they click on the links in the map.
Firstly, what do i put as my link to call the regions from this snippet?
I’d like the map to display by default - when no region is requested - and the userlist to display when they click on the link
I am using seo-friendly urls, so the page i have the map on is:
http://site.com/map.html
So should the link be something like
http://site.com/map.html?region=2
And how do i then get that value into the snippet call?
Do snippets automatically look for values in a querystring?
Heres an example of
fixed snippet call that i am using:
[!WebLoginPE? &type=`users` &usersList=`Members:default:default:surname:ASC:region(2)` !]
Its the region filter at the end i want to change dynamically
Thanks for any advice
Environment:
MODx 9.6.1
PHP 5.2
Apache 2
Linux Server