Developer forum

Forum » Rapido » Alt-tag to images

Alt-tag to images

Gerard Kocks
Gerard Kocks
Reply

Hi,

I am wondering whether there is an option to add an alt-tag to images in Dynamicweb’s CMS?
This will help us to improve the online visibility of our solutions.

Best regards
Gerard


Replies

 
Nicolai Pedersen
Reply

In Rapido, you would need to do one of 2 things - but it requires a bit of template coding.

  1. Add an extra field to the item types with image selectors for the alt tags and then add the alt tag value to the template rendering the image.
  2. Use file meta data system to add a field and alt tags to images in the filemanager, and add the meta data value to the template rendering.

BR Nicolai

 
Angelo Aviles
Reply

Can you please elaborate on where I can perform this action in the backend. 

 
Nicolai Pedersen
Reply

It kind of depens on your implementation.

But usually you can add a  field to the appropiate item types - see here: https://doc.dynamicweb.com/documentation-9/content/items/item-types

Each item type has a template that renders the content. There are 2 kinds - the 'old' template tag versions, and the newer viewmodel versions.

Using viewmodels, you can see how to get a field from your changed item type, here: https://doc.dynamicweb.com/template-tags/introduction/concept/viewmodels#4485

Feel free to contact care@dynamicweb.dk if you need assistance.

BR Nicolai

 

You must be logged in to post in the forum