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 NOT feature #104

Open
sottwell opened this issue Apr 16, 2017 · 2 comments
Open

Add NOT feature #104

sottwell opened this issue Apr 16, 2017 · 2 comments

Comments

@sottwell
Copy link

It would be nice to be able to list resources that do NOT have a given tag.

@davidpede
Copy link

+1

@Jako
Copy link
Contributor

Jako commented Feb 11, 2020

In MoreGallery, the excluding tags are handled with:

                $excludedTagIds = implode(',', $excludedTagIds);
                $c->where(array(
                    "NOT EXISTS (SELECT 1 FROM {$this->modx->getTableName('mgImageTag')} Tags WHERE `mgImage`.`id` = `Tags`.`image` AND `Tags`.`tag` IN ({$excludedTagIds}))"
                ));

Tagger could do it similar.

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

No branches or pull requests

3 participants