Tagger icon indicating copy to clipboard operation
Tagger copied to clipboard

Add NOT feature

Open sottwell opened this issue 7 years ago • 2 comments

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

sottwell avatar Apr 16 '17 03:04 sottwell

+1

davidpede avatar Jul 20 '17 07:07 davidpede

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.

Jako avatar Feb 11 '20 14:02 Jako