I’m having some trouble wrapping my head around this one - it seems like I should be able to do it without js or php, but I can’t quite wrap my head around it:
I have a number of articles in a channel. Each article can be assigned multiple categories from 2 different category groups, like:
Age: Child, Teen, Adult, Retired
Topic: Bikes, Cheese, Books, Games
Using an online form, the user selects one or more category values from one or both category groups. When the user submits the form, EE uses dynamic parameters to determine the appropriate categories and display all articles that match any of those criteria.
So far, so good, BUT: I need EE to do a boolean “or” match WITHIN each category group, but a boolean “and” search BETWEEN the two category groups. Currently, if a user selects “Teen” from the Age group, and “Bikes” and “Cheese” from the Topic group, EE is doing an “or” search both within and between the categories, so in this example, any article that pertains to Bikes or Cheese will appear, regardless of whether it’s appropriate for Teens, and likewise any article marked “Teen” will also appear, even if it doesn’t talk about Bikes or Cheese.
Instead, what I need is for EE to display ONLY those articles that match both the categories in the Topic Group (bikes or cheese) AND that are also categorized for “Teen”
Any ideas/suggestions for how I might accomplish this will be greatly appreciated!