November Happy Hour will be moved to Thursday December 5th.

(Alt Text) for images on EPiServer

Vote:
 

Hello,

I am using CMS 7.5, and all I have for an image is the following:

Category

Copyright

Photo

Image Description

I cannot find (Alt. text) field for images, can you advise which field of the mentioned ones I can use for (Alt. text), and give me an example for alternative text for an image?

Thanks

#196734
Sep 10, 2018 16:06
Vote:
 

Hi Sherif Fadl.

Episerver relies on Content Types to accomodate assets, incl. images. You need to extend the Content Type of yours with a field to hold the alt text data value.

You can see an example here:

https://github.com/episerver/AlloyDemoKit/blob/master/src/AlloyDemoKit/Models/Media/ImageFile.cs

If you're unsure about where your Content Type for your image media is located within your solution, then try and do a search for MediaDescriptor - please look for one with the ExtensionString set to image extensions (like .jpg).

/Casper Aagaard Rasmussen

#196738
Sep 10, 2018 16:39
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.