Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a new match mode to the TaggerGetResourcesWhere snippet #145

Open
wants to merge 1 commit into
base: 3.x
Choose a base branch
from

Conversation

halftrainedharry
Copy link

Currently the snippet "TaggerGetResourcesWhere" can return resources where either any of the tags matches (&matchAll=`0`) or all the tags match (&matchAll=`1`).

This PR adds a new mode (&matchAll=`2`) where tags from different groups are matched with an AND condition and tags from the same group with an OR condition.


For example:
You have two groups (color and size) with the following tags

  • color
    • red
    • green
    • blue
  • size
    • small
    • medium
    • large

and you want to query it with a condition like "red OR blue AND small OR large" (as described in this forum topic)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant