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.
Alt-tag to images
In Rapido, you would need to do one of 2 things - but it requires a bit of template coding.
- 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.
- 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.
Can you please elaborate on where I can perform this action in the backend.
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 firstname.lastname@example.org if you need assistance.
You must be logged in to post in the forum