Posts

Showing posts with the label Sitecore

PowerShell Script to update Alt tag missing for Images

Hello everyone. I am back with another powershell script that can be very useful if you want to update alt tag missing for all images in sitecore.We all know, how important is alt tag from SEO perspective and that's why, this powershell script can come very handy when we have lot of missing alt tag for images. Below is the powershell script for your reference.The script is pretty simple to understand. $rootPathOfImages = "/sitecore/media library/Project/" $testMode = $false $secondsToWaitOnLimitError = 60 $successCount = 0 $errorCount = 0 $errorList = "" $date = Get-Date $formattedDate =$date.tostring('dd-mmm-yyyy-hhmmss') # List of template ids to exclude from processing $excludedTemplateIds = @( "{FE5DD826-48C6-436D-B87A-7C4210C7413B}", #media folder "{0603F166-35B8-469F-8123-E8D87BEDC171}", #pdf "{16692733-9A61-45E6-B0D4-4C0C06F8DD3C}", #doc "{7BB0411F-50CD-4C21-AD8F-1FCDE7C3AFFE}", #...

AddToAny Social Share for Sitecore

Image
Hello everyone, if you are working in Sitecore SXA, you might have seen that Sitecore SXA module AddThis might have stop working automatically. The reason behind this is Oracle who was supporting AddThis has discontinued its services from 31st May 2023.You can find the details in below Link So, recently we were trying to look out the easiest way of replacing the AddThis module with bare minimum effort. After researching, we found three suitable option which can be used instead of AddThis module. ShareThis Shareaholic AddToAny We went ahead with AddToAny module as it was the most simplest way for implementing the Social feeds sharing and it was exactly similar to AddThis module. Let's see how we can implement the same. AddToAny Navigate to AddToAny website on link mentioned above and you should get below screen. Hover on Get The Share Buttons and Select Website. You will be navigating to another Url : https://www.addtoany.com/buttons/for/website Now you can see on the page...

Creating Custom Interactive Dialog to execute Sitecore PowerShell Script

Image
Hello everyone, we will try to learn how we can create a interactive dialog in Sitecore to execute powershell script. In this article we will see how we can convert a view rendering or controller rendering to JSON rendering via powershell interactive dialog. We will also check that how we will be adding the button to Ribbon in Sitecore. We will divide the blog into 3 section. Creating a Execute Button in Ribbon PowerShell Script to create interactive Dialog Demo of Script Step 1: Navigate to Script Library under PowerShell under Modules. Path : /sitecore/system/Modules/PowerShell/Script Library. Step 2: Right click Script Library --> Insert --> PowerShell Script Module --> Give A Name(CustomPowershell2) --> Ok Step 3: Right Powershell Script Module which is created --> Insert --> PowerShell Script Library --> Give A Name(Content Editor) --> Ok Step 4: Now create the content tree structure which...

Understanding Security Profile Group in Sitecore OrderCloud

Image
Hello everyone, In this blog we will try to understand, what is Security Profile in Sitecore OrderCloud. How we can Security Profile in Sitecore OrderCloud. Let's first understand what is Security Profile. According to Sitecore OrderCloud definition "Security profiles are groups of roles (permissions), each of which grant users access to specific API endpoints and functionality. This lets you have permission based API calling from applications. If a request is made by a user without sufficient roles, they will receive a 403 Forbidden response" This come very handy in Ecommerce application where you have role based functionalities. The best example is Buyer User who will having different roles(Ex.MeAddress,Shopper,MeCreditCardAdmin etc.) and Seller User(Ex. FullAccess, OrderAdmin,BuyerAdmin,CatalogAdmin etc.).There are multiple roles in Sitecore OrderCloud which we will see in different blog. Let's create our first Security Profile in Sitecore OrderCloud Navigate ...

Understanding Different Authentication Grant Type WorkFlows in Sitecore OrderCloud

Image
Hello everyone,In my previous blog regarding OrderCloud, we have seen what is Buyer organization, Buyer User group, Buyer User and how they are related to each other. In this blog we will try to understand the Authentication mechanism used by Sitecore OrderCloud. What different grant types it support and how we can connect to a third party OpenID(basically for implementing Single Sign On) for implementing the same. Sitecore OrderCloud mechanism is built on OAuth 2.0 to support both Authentication and Authorization.If you want to understand Authentication and Authroization you can refer my blog on the same Here .I have tried to explain using Sitecore and how it implement the same. So lets get started. In Sitecore OrderCloud there are basically 6 GrantType Workflows which is listed below Password Grant Type Workflow Client Credential Workflow Refresh Workflow Elevated Password Workflow Anonnymous Shopping Workflow SSO Workflow Password Grant Type Workflow : The most common grant type...

Understanding Buyer, User Group and User concepts in Sitecore OrderCloud

Image
Hello everyone, In this blog we will try to understand what is Buyer, Buyer Organization, User Group, Users in Sitecore OrderCloud. We will also see how we can create all these in Sitecore OrderCloud portal. Buyer : Buyer is real world entity who come to your ecommerce website and look for products to buy. He can also navigate through your website without purchasing anything Users : Users are basically a single entity in Sitecore OrderCloud who perform some operation in Marketplace. They can either be Buyer user or Seller user User Groups : This is basically a collection of users with same interest or common persona in market place. Ex. Different user with similar interest in one category in ecommerce website. Buyer Organization : Buyer Organization is an umberalla under which User Group containing common persona and interest resides. Its a collection of User and User Groups. Now let's see that how in Sitecore OrderCloud Portal, we can create those. Creating a Buyer Organ...