sanity-plugin-media icon indicating copy to clipboard operation
sanity-plugin-media copied to clipboard

[Feature Request] - Filtering by multiple tags

Open patrickkenyon opened this issue 2 years ago • 2 comments

Unless I'm missing something I believe assets can only be filtered by one tag type. It would be really useful (and we have this use case in the company I work for).

e.g.

photo_a | tags: 'animal', 'funny' photo_b | tags: 'animal' photo_c | tags: 'funny'

It should be possible to add two tags to the filter and narrow your results to just photo_a

patrickkenyon avatar Apr 08 '22 11:04 patrickkenyon

Highly interested in this as well :)

Igor178 avatar May 26 '22 11:05 Igor178

+1 here

dandc11 avatar May 30 '22 16:05 dandc11

Me too! Is there a technical barrier for this?

iandoesallthethings avatar Nov 09 '22 15:11 iandoesallthethings

This has been possible in the v2 branch for some time – but only recently landed in the v3 version in 2.1.0!

It's now possible to add duplicate filters and search on multiple tags (or other filters), which should hopefully allow you to accomplish what you're after.

robinpyon avatar Jul 27 '23 00:07 robinpyon