To setup Sitecore IP Geolocation functionality, you must go to the Sitecore Support & Self Service portal and sign up for a subscription. Refer to this Sitecore article for more info. After we have subscribed to the Sitecore IP Geolocation functionality to validate it we use the TestIP.aspx page. Check out thie Sitecore support page to get the TestIP.aspx page and upload it to the Sitecore folder on your server. Open the https://hostname/sitecore/TestIp.aspx page Sample Test IP's to test with: Africa IP : 102.129.96.0 US IP: 69.162.81.155 UK IP: 101.167.212.0 Make sure the response from the TestIP.spx has the correct country for different test IP's. Once this works we know that the Sitecore IP Geolocation functionality is enabled. How do we use this functionality in our application. Just use the personalization rules in Sitecore under the "Geo IP" section (see image below) . So you can control what content is shown to a user based on their location. We
One of the most important conditions of making a site accessible is to make sure that all images on the site have the alt field with some value that describes the image. The simplest update we can make to Sitecore is to have the alt field automatically get the image file name. That way even if content authors forget to fill the alt field, it is pre-filled with the file name. To do this just add $name to the alt field in the standard value of an image [/sitecore/templates/System/Media/Unversioned/Image/__Standard Values] This is all good for an future images that gets uploaded to Sitecore. But what about all the existing images. For that we can write a PowerShell script (see below) to get all images in the Sitecore image folder that have empty alt tags. Export that to a csv file. $pathOfImages = "master:/sitecore/media library/MyImages" $images = Get-ChildItem -Path $pathOfImages -Language * -Recurse | Where-Object { ($_.Fields["Alt"] -ne $null) -and ($_.Fields