decaporg / decaporg/decap-cms

Support multiple possible values in a collection filter

Open
#7,328 0 comments 0 reactions 0 assignees Claimed by @paulroub View on GitHub
type: feature
Dominant language
JavaScript
Stars
19.4k
Forks
3.1k
Avg merge
1d 14h
Merged PRs (30d)
9

Description

**Is your feature request related to a problem? Please describe.**

I have cases where I'd like a collection to be made of posts in one of a number of categories.

**Describe the solution you'd like**

I'd like to be able to say

```yaml
filter: { field: "category", value: ["music", "dev"] }
```

in a filter.

**Describe alternatives you've considered**

Not sure how to make this happen without restructuring my categories around Decap.

**Additional context**

I do have a PR ready for this, and will add a doc PR shortly.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.