We have a View which has the following settings. How can we setup the view to use a query parameter from the URL to filter the results?
Article Content Type (fields):
- Title
- Body
- Category (field_category) --> taxonomy
- Type (field_type) --> taxonomy
View Exposed Filters (values)
- Category (All, Security, IoT, Wifi, Network)
- Type (All, Blog, Press Release, Breaking News)
Desired output:
- When the URL is
www.mysite.com/news?type=Blog
, then set filters Type=Blog and Category=All to return results of all Article pages where type=Blog and Category can be any (not null) - When the URL is
www.mysite.com/news?type=Blog&Category=Security
then filter results to return all Article pages where type=Blog and Category=Security
We tried adding a contextual filter with the following settings only but it did not work.