SEO for Images on Repeater that takes Images from Database?

Do you guys know how to add an Alt Text for images on a repeater which takes the images from a database?

Should I Add a field called ‘Alt Text’ on the Database and insert the keywords only there, should I need a bit of code on the Repeater’s page, or should I add every single image on the repeater and add an Alt Text on the Image Settings for each??

or Should I add this code on the page and add the alt text there too?
$w(“#myImage”).alt = “Alt text”;

Thanks

1 Like

Hey,
When connecting images in a repeater you can set various properties of the image, such as the src, tooltip, link and alt text, so if you have a field on your database that includes the alt text, that would be the easiest.

Oh that makes sense! Thanks a lot! :slight_smile: