I got task to edit the existing code (which is written by someone else), Code lists posts according to the "postcategory" variable in query string. Code uses getPost and getResources along with TV.
Question is when i open this url
www.website.com/category-post-updates?postcategory=string1 it works but when i try to open
category-post-updates?postcategory=some _other_string, it doesnt list anything.
Below is the code for tvFilter
&tvFilters=`[b]post_category[/b]==%[[!get.querystring? &name=`postcategory`]]%,post_subcategory==%[[!get.querystring? &name=`postsubcategory`]]%`
Below are the TV Details
Name : post_category
Caption : Categories
Input Type: Checkbox
Input Option Values: @select listlabel, listvalue from modx_listvalues where listkey='postcategory' order by weight asc, listlabel asc, id asc
1) How can i debug whats happening in background ? I mean how/where can i print/see the query that run behind this code ?
2) What is @ in query ? Why it is used ?
@select listlabel