We have a solution where a page with xhtmlString property can have an images from ImageVault.
Images are getting inserted fine and it is working as expected apart from the alt text which is not getting reflected in xhtml string as attribute the resultant img tag from Image Vault has empty alt attribute and filled in src attribute.
We have alt metadata configured in the image vault for the images, and it has values in it.
/ImageVault/library/GetPublishedMediaItemInformation get all the metadata info for the image from the api call but the resultset alt is empty, eventhough the alt is available in imagevault editor
We are using ImageVault(v 4.7.2) and Episerver (v 8.11).
Any help would be greatly appreciated.
I have to inform you that support for setting alt text and title automatically based on metadata has been removed from ImageVault. The reason is that these data is context specific and different usage of the same media is not guaranteed to have the same values. ImageVault 3 had these features and some early version of ImageVault 4.
What is the current approach for making imagevault render the required alt value to its img-element in an xhtmlstring?
The workaround we are using is requesting the clinet to edit the html and fill in the alt text, then publish. This is very annoying for users as they have some access rights issues to feed in what value they wanted to go in alt text.
If you would like to set the alt or title on an image in the xhtmlstring, you can mark the image and use the standard insert/edit Image button. This will display the standard episerver image dialog where you can set the title and image description (alt).