#update metadata for gallery field in CMS from front-end

2 messages · Page 1 of 1 (latest)

civic sail
#

I'm using Wix Editor, not Wix Studio. I'm used to using the UI to add and update records in the CMS. There doesn't seem to be a way to get to the metadata for a gallery field in the CMS. (I am able to upload an image using an upload image button that is connected to the CMS.)

I have a page for members to upload images to the newest CMS record (this year's book list). Here's the tricky part: when they upload the image, I also want them to upload a title and description that goes with the image which is part of the Gallery field of the books CMS.

I am displaying the images on our private neighborhood website as a gallery (by year) which can be advanced with previous and next buttons.

After much research to figure out how to do this, I ended up finding the AI Velo Assistant on this page https://dev.wix.com/docs/velo/apis/wix-media-v2/introduction which helped me create a backend module for the media manager.

I've attached a Word doc with the code since it caused me to exceed the character limit for this post.

WHAT I"M HOPING FOR:

I suspect there might be code (for the backend module and/or the page code) that lets me add an image and metadata (title and description). The only status text that appears is File upload or CMS update error. In prior iterations, I was able to get the image updated but not the metadata.

Thank you in advance if you got this far through my post. I'm hoping there are some media manager API experts out here.

civic sail
#

I finally got this to work. I'll upload corrected code.