Posts

Medium Posts

Sitecore AI Capabilities ⮚  Enabling Image AI Analysis in Sitecore ⮚  Leverage Azure AI for Sentiment Analysis in Your Next.js Application Sitecore XM Cloud ⮚  Adding Built-in Components in Sitecore XM Cloud Pages Sitecore Content Hub One ⮚  Sitecore Content Hub One Development: A Step-by-Step Guide Sitecore XP ⮚  Track Published Items in Sitecore ⮚  Sitecore Custom Logger ⮚  Rule Set Editor: Opening Blank Window When Editing Rules ⮚  Implementing CSP with Nonce in Sitecore ⮚  Token-Based Authorization with Sitecore Services Client ⮚  Enhancing Sitecore Security: Implementing PBKDF2 for Password Encryption GraphQL ⮚  GraphQL Client for .NET Standard Sitecore Search ⮚  Sitecore Search capabilities Content Hub - DAM ⮚  DAM Workflows in Sitecore Content Hub ⮚  Extend Your Content Hub with External Components!

Sitecore Content Hub - Triggers, Actions and Scripts

Image
Triggers: In Sitecore Content Hub, triggers are events or conditions that initiate automated actions. These can include changes to assets, metadata updates, or other predefined criteria. Triggers serve as the starting point for automation workflows, reacting to specific events within the system. Actions: Actions in Sitecore Content Hub are the executable steps triggered by an event or condition. These steps can be a variety of operations, such as updating metadata, moving assets, or triggering notifications. Content Hub provides a set of predefined actions, and users can also create custom actions to suit their specific workflow requirements. Scripts: Scripts enhance the automation capabilities in Sitecore Content Hub. Users can write scripts using languages like JavaScript, C# to define custom logic for triggers and actions. These scripts allow for more flexibility and can be leveraged to perform complex operations, extending the automation capabilities beyond what predefined actions

All Blog Posts - 2023

⮚ Sitecore Content Hub - Triggers, Actions and Scripts ⮚ Setup Sitecore XM Cloud Dev Environment using Docker ⮚ How to test Next.js pages and components with Jest for Sitecore Headless Development ⮚ Fetch component-level data in Next.js app using GraphQL - Sitecore Headless Development ⮚ Multisite configuration in Next.js application using Middleware ⮚ Generate a sitemap for Sitecore Headless Next.js app ⮚ Create Hero Banner component in Next.js app using the Sitecore-first development workflow ⮚ Fetch Site Settings in Layout Service using GetLayoutServiceContext Pipeline ⮚ GraphQL query to fetch Site Settings item in Next JS application ⮚ Create Custom Rendering Contents Resolver for Sitecore Headless Application ⮚ GraphQL query to fetch the country specific state list - Sitecore Headless Development ⮚ Sitecore Item Service Rest APIs for Client Apps ⮚ Sitecore OrderCloud SDK Client Library for .NET ⮚ Custom validator for Sitecore Rich Text field ⮚ Useful PowerShell sc

Useful PowerShell scripts for a Sitecore developer

Image
  Below are some helpful PowerShell scripts that prove beneficial for any Sitecore developer when making bulk changes in Sitecore or generating self-signed certificates. #1. Insert a user in Sitecore using the Sitecore PowerShell Extensions (SPE): # Set the user credentials $userName = "user1" $password = "passw0rd123" $email = "user1@example.com" $role = "sitecore\ContentAuthor" # Specify the desired role # Get the user manager $userManager = Get-UserManager # Check if the user already exists if ($userManager.GetUser($userName) -eq $null) { # Create a new user $newUser = $userManager.CreateUser($userName, $password, $email, $null) # Add the user to the specified role if ($newUser -ne $null) { $roleProvider = [Sitecore.SecurityModel.Roles.RoleManager]::GetRoleProvider("switcher") # Get the role $sitecoreRole = $roleProvider.GetRole($role) # Add the user to the role $sitecoreR

Custom validator for Sitecore Rich Text field

Image
The Rich Text Editor (RTE) stands out as the tool most frequently and extensively utilized by content authors. This is the interface extensively utilized for manipulating the HTML of the page/components. As a result, developers must implement fundamental validations for Rich Text fields. Nevertheless, there are instances when basic validations are insufficient. In such cases, it becomes necessary to implement a custom validator. In this blog, I will dig into a practical scenario where the implementation of a custom validator was imperative. This validator goes beyond merely validating HTML; it also performs instant corrections as needed. Let me give you the background why we need to implement a custom validator for Rich Text. I would like to highlight here the  Links to cross-origin destinations are unsafe  SEO audit issue. Lighthouse tool flags unsafe links to cross-origin destinations, if it is not handled properly. Linking to a page on another site with the target="_blank"

ADDRESSING CORE WEB VITALS ISSUES

Image
Core Web Vitals are a set of specific  metrics  that Google considers important in a webpage’s overall user experience. These metrics are crafted to assess the genuine user experience, encompassing loading performance, interactivity, and visual stability of a webpage. Core Web Vitals metrics: First Input Delay – FID First Contentful Paint – FCP Largest Contentful Paint – LCP Cumulative Layout Shift – CLS HOW TO IMPROVE FID SCORE? FID (First Input Delay) measures the duration from the moment a user initially interacts with a page. In order to deliver a positive user experience, websites should aim for a First Input Delay of 100 milliseconds or lower. FID is a metric that measures a page's responsiveness during load. As such, it only focuses on input events from discrete actions like clicks, taps, and key presses. Potential interactions examined in FID: Clicking on a link or button Adding input text into a blank field Selecting a drop-down menu Clicking a checkbox Here are key sugge

Setup Sitecore XM Cloud Dev Environment using Docker

Image
In this blog, I will walk you through the process of setting up a Sitecore XM Cloud development environment using Docker containers. What is XM Cloud? Sitecore Experience Manager Cloud (XM Cloud) is a completely managed self-service deployment platform designed for developers and marketers, enabling them to seamlessly launch compelling omnichannel experiences in the Cloud utilizing Sitecore's headless CMS capabilities. Docker Containers - On the other hand, Docker containers enable the creation of a local environment that closely replicates the production setup. Sitecore offers pre-configured container images, making it simple to set up. By using  "docker-compose up" , you can swiftly launch an instance, and the required container images will be downloaded automatically. Let's dive in and get started! Prerequisites - Before we start setting up the Sitecore XM Cloud, ensure that you have the following prerequisites ready and installed: A valid Sitecore License file. .