Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding additional fields #49

Open
jackfowler opened this issue Jun 1, 2023 · 0 comments
Open

Adding additional fields #49

jackfowler opened this issue Jun 1, 2023 · 0 comments

Comments

@jackfowler
Copy link

jackfowler commented Jun 1, 2023

Hi there,
I think it would be a super handy feature if we could add additional fields to a Cloudinary asset. Just the same way as you can with Images or Files within Sanity. For example:

{
  name: 'portfolioItem',
  type: 'cloudinary.asset',
  fields: [
    {
      name: 'link',
      type: 'link',
    },
   ]
},

I know I could nest the asset in an object, but this breaks the multiple uploads, which is a bit of a deal breaker.

I'd be happy to have a go at this myself and open a PR, would someone be able to point me in the right direction? Or even just let me know if it will be possible?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant