Surendra Sharma

Surendra Sharma

Search This Blog

Saturday, November 10, 2018

Course : Learn React by building and deploying production ready app

There is one unstable factor in web technology and that's the shift of data processing on client and server side. 

With ASP, ASP.NET, JSP etc it was server side but within few years its shifted to client side due to JavaScript based frameworks. Every month I notice some new JavaScript based framework introduced.

Even Sitecore knows the importance of JavaScript based framework. That's the result of official launching and support of JSS.

Though I am not a big fan of JavaScript but somehow React.js impressed me more than Angular, knockout.

To update myself in recent scripting world, I completed course "Learn React by building and deploying production ready app" from

Learn React by building and deploying production ready app
Certificate : Learn React by building and deploying production ready app

Friday, November 2, 2018

Sitecore PowerShell Script: Change alt value of image items in Sitecore media library

Sitecore PowerShell Script to change media items alt tag with image description or display Name or item name

$mediaTemplateName = "Image"
$mediaParentPath = "master:/sitecore/media library/Project"
$counter = 1

$allMediaItems = Get-ChildItem -Path $MediaParentPath -Recurse
$filteredMediaItems = $allMediaItems | Where-Object { $_.Fields["Alt"].Value -eq "" -and [Sitecore.Data.Managers.TemplateManager]::GetTemplate($_).InheritsFrom("Image") }

foreach($MediaItem in $filteredMediaItems) {
        $altValue = $MediaItem.ImageDescription

        if($MediaItem.ImageDescription -eq "" -and $MediaItem.DisplayName -ne "")
            $altValue = $MediaItem.DisplayName.Replace(".jpg", "").Replace(".JPG", "").Replace(".png", "").Replace(".PNG", "").Replace(".gif", "").Replace(".GIF", "")
        elseif($MediaItem.ImageDescription -eq "" -and $MediaItem.Name -ne "")
            $altValue = $MediaItem.Name

        #Update Alt tag
        $MediaItem.Fields["Alt"].Value = $altValue

        Write-Host $counter " -> " $altValue " -> " $MediaItem.ItemPath
        $counter = $counter + 1

Any suggestions or improvements are most welcome.

Saturday, October 27, 2018

Course : Data Science Essentials

Finished the course "Data Science Essentials" successfully on EDX offered by Microsoft by 98%.

Data Science Essentials
Data Science Essentials
I study below modules in this course
  • Module 1: Introduction to Data Science
  • Module 2: Probability and Statistics for Data Science
  • Module 3: Simulation and Hypothesis Testing
  • Module 4: Exploring and Visualizing Data
  • Module 5: Data Cleansing and Manipulation
  • Module 6: Introduction to Machine Learning

Friday, October 19, 2018

ebook : SharePoint to Sitecore: Strategy and Implementation

Sharing my 6th eBook with Sitecore community - "SharePoint to Sitecore: Strategy and Implementation".

SharePoint to Sitecore
SharePoint to Sitecore

There are multiple ways to move data and images from SharePoint to Sitecore. I tried my best to include all the approaches but explained one approach which worked for me in Sitecore 9 update 1 instance.

You can read and download this ebook from here:

I hope you like this eBook.

Please leave your comments or share this eBook if it’s useful for you.