Sitecore Images ALT text



As you know the Images in Sitecore uses Unversioned template which uses the default language "en", but what if you need to use Alt Text in other languages, and you don't want to add the text for each language?

I actually tried many things to do this 😰

my first solution was to make custom processor for uploading images and control the whole process, but this not worked for me as I was uploading images with alternative text from Item not from Media Library, unfortunately this not worked for me as the alt text was empty when uploading the images

I made too much debugging to know Why!!

and also did a reverse engineering on Sitecore.Kernel.dll through ILSpy but nothing useful to me

Then I tried to take a look at the templates of the Images, I found that all fields is Shared except the alt text and I remembered that all fields were filled with data while debugging except the alt Field

The final solution was :

Step1: Go to Content Editor

Step2
: Templates >> System >> Media >> Unversioned >> Image

Step3: Go to field Alt and let Shared field checked





Step4: Save and ignore the warning message

The result:





Comments

Popular posts from this blog

Sitecore Multi list Code Data Source

Organize media files using Sitecore PowerShell

Deploy Config To Solr Cloud Searchstax Using Zookeper