Hi!
When using the @Html.ImageFor(), how do I get the Alt/Title-text from the image?
Possible to get the metadata AlternateText that’s set on the image in the MediaArchive?
Thanks
Litium version: 7.4.2
// Simon
Hi!
When using the @Html.ImageFor(), how do I get the Alt/Title-text from the image?
Possible to get the metadata AlternateText that’s set on the image in the MediaArchive?
Thanks
Litium version: 7.4.2
// Simon
Check this query:
The text needs to be set on the ImageModel
passed to Html.ImageFor(...)
, it has a property for it. You’d need to set it as a part of building the view model.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.