cloudinary-community / cloudinary-community/astro-cloudinary

[Feature] Allow an array for content loader resource type field to allow querying all assets

Open
#33 1 comment 0 reactions 0 assignees View on GitHub
hacktoberfest hacktoberfest2025 question
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

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.