HTML button connected to database

Hello everybody,

I’m currently designing a website for a record label company, and I need to create hundreds of pages for each release they previously had (album, EP, single…). So I’m currently working with databases and everything is fine, except for one thing : another company is providing us HTML buttons that are designed to buy vinyls and more. Of course, every button is specific for each release, so I need to find a way to implement HTML code into my database so the buttons appear differently on each page !

Do you know how can I make this work since HTML is not supported by the database ? I’ve tried dozens of different codes already and none of them is working…

1 Like

I’m not sure I got the question, but why won’t you store it as string (Text)?

Also a bit confused about what the real problem is, but let me guess: the buttons all “look” the same, they just link to a different URL per record/LP/EP?
So you prob. need to send this URL to every dynamic page with this button?
A similar problem was solved here: https://girizano.wixsite.com/codecorner/post/html-component-not-running-in-publish-mode-google-sheets-example

maybe you can use it as a template.

Well actually yes and no @giri-zano , this is what the buttons are supposed to look like (see below)

So for each concerned release, you will have 2 buttons (provided with one HTML code) : one to choose whether you want the CD, vinyl… and one to add to cart. But of course, these buttons will be specific to each release, so I would need to integrate them in my database as I explained above. I tried to store it as string as @J. D. suggested, but it doesn’t really work as the HTML code appears as “text” but the buttons don’t show up. Don’t know if I made myself clear, but you can see below an example of the HTML I need to integrate to my database.

It looks to me as if the Buttons are just for “your convenience”. That is, they don’t look special, they just link to something.

Why not just store all the product URLs (both types: CD, vinyl) in a database and use two Wix Buttons - each with a different design, one for each product type. This will result in a cleaner, more seamless look, it will be easier to maintain, and you avoid the headeache of having to deal with the HTML.

Thanks very much for your help guys, I found a solution that works !!