cloudinary-community / cloudinary-community/astro-cloudinary
[Feature] Allow an array for content loader resource type field to allow querying all assets
- Dominant language
- TypeScript
- Stars
- 30
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
# **Feature Request**
## **Is your feature request related to a problem? Please describe.**
Make it easier to utilize content from a single folder by allowing an array of resource types
## **Describe the solution you'd like**
Instead of
```
photos: defineCollection({
loader: cldAssetsLoader({
folder: "collection",
}),
}),
videos: defineCollection({
loader: cldAssetsLoader({
folder: "collection",
resourceType: "video",
}),
}),
```
Allow
```
assets: defineCollection({
loader: cldAssetsLoader({
folder: "collection",
resourceType: ['image', 'video']
}),
}),
```
Contributor guide
Assessment
This issue has not been assessed yet.