Krushna Patel Avatar

MVP Profile

Krushna Patel

MVP 2026

Technology

India
MVP 2025

Technology

India

I'm a Mentor

I have been through this journey myself and know what it takes. I am here to support and guide you through every step—whether it's contributing to the community, improving your Sitecore skills, or working towards MVP recognition. I’ll share my experiences, provide feedback, and help you stay motivated. My goal is to make this process easier for you and ensure you grow both technically and professionally. Let’s make this journey together!

Timeline

2025

18/Nov

Sitecore Content SDK & Integrating Sitecore Search with Cloud SDK | Hands-On Tutorial

In Episode 2 of my Sitecore Content SDK series, we dive into a hands-on tutorial focused on integrating Sitecore Search with the Cloud SDK. After covering the concepts in the first episode, this session walks through setting up a local project by cloning the official Sitecore example repository, adding the Cloud SDK, implementing basic search functionality, calling the Sitecore Search API, and displaying live search results directly in your app. This episode is perfect for developers who want to...

Sitecore Search

2025

11/Nov

Guiding and Supporting Sitecore Users

I actively connect with Sitecore professionals on platforms like LinkedIn and Slack, helping them with their queries and guiding them through challenges related to Sitecore development and content management. I assist others in solving problems, share best practices, and provide advice on Sitecore features, contributing to a stronger, more knowledgeable community.

Sitecore JSS

2025

7/Nov

Answer: How can I only fetch selected fields from Sitecore Content Search (Content SDK) instead of all attributes?

Accepted answer on Stack Exchange regarding fetching only selected fields from Sitecore Content Search using the Content SDK. I explained that instead of receiving all attributes in the search response, you can configure the specific fields you need either during the initial setup of the search widget or dynamically before making an API request. This approach allows developers to limit the response to only the required attributes, improving performance and making it easier to handle case-specifi...

Sitecore Search

2025

13/Oct

Started own youtube Sitecore Content SDK series

I’ve started my own YouTube channel to share knowledge and insights about Sitecore development one video per month, with a focus on the new Content SDK and XM Cloud. In the first episode of my series, I compare Sitecore Content SDK with the traditional Headless JSS approach, explaining what’s included in the SDKs, how developer workflows differ, and what to expect in practical implementations. This series is aimed at Sitecore developers and front-end engineers who want to learn modern, cloud-nat...

Sitecore XM Cloud

2025

12/Oct

Understanding the SearchWidgetItem in the Sitecore Content SDK

This blog explains the purpose and functionality of the SearchWidgetItem class in the Sitecore Content SDK. It covers how the class is constructed, how to configure search options such as query, facets, sorting, pagination, suggestions, ranking, personalization, and response settings, and how to convert the configuration into a DTO for use in Sitecore Search. Clear examples and TypeScript code samples are included to demonstrate how SearchWidgetItem can be used to build flexible and reliable sea...

Sitecore Search

2025

24/Sep

Making Conditionally Rendered Elements Editable in Page Builder (XM Cloud)

This blog addresses a common challenge in Sitecore XM Cloud Page Builder when working with components that use conditional or dynamic rendering, such as Tabs or Accordions. By default, only the content initially rendered in the DOM is editable, leaving other tabs or panels read-only for content authors. The post demonstrates a practical solution using a check for Experience Editor (isEE) to render all tabs or panels in the DOM while controlling visibility via CSS and JavaScript. This ensures tha...

Sitecore XM Cloud

2025

26/Aug

Issue with editing dynamic/conditional rendering components in Experience Editor

I discovered and reported an issue in Sitecore XM Cloud’s Experience Editor where dynamic or condition-based components, such as accordions or tabs, only allow editing of the fields that are initially visible. Fields in other panels or tabs appear as read-only, which makes it difficult for content authors to update all parts of the component directly. I raised a detailed support ticket with Sitecore, and they confirmed it as a bug. By reporting this issue, I helped highlight a limitation in the ...

Sitecore XM Cloud

2025

15/Aug

Migrating from JSS to Sitecore Content SDK

This blog guides developers on migrating Next.js applications from Sitecore JSS 22.8 to the new Sitecore Content SDK for XM Cloud. It covers the key changes, such as replacing the Experience Editor with XM Cloud Page Builder, unified data fetching through SitecoreClient, simplified configuration files (sitecore.config.ts and sitecore.cli.config.ts), and cleanup of unused scripts. The post walks through the migration step by step, including dependency updates, environment variable changes, and co...

Sitecore XM Cloud

2025

1/Aug

Build a Smarter Q&A Feature in Next.js Using Sitecore Search (With Fallback Search Results)

This guide shows how to build a smarter Q&A feature in Next.js using Sitecore Search with automatic fallback results. The system first tries to fetch direct answers via getQuestionsAnswers(), and if none are found, it displays related articles using useSearchResults(). A custom useSmartSearch hook handles queries, AI answers, and fallback results, while a front-end component like SmartSearchBox renders a clean UI. This approach ensures users always get meaningful content, making it ideal for FAQ...

Sitecore Search

2025

30/Jun

Handling Advanced 404s, Redirects and Errors in a Sitecore JSS + Next.js App (Part 2)

This guide covers advanced handling of 404 pages, redirects, and errors in a headless Sitecore JSS app using Next.js. Instead of relying on static pages, it shows how to serve custom 404 pages from Sitecore, giving content authors full control over messaging and design. Redirects can be managed dynamically from Sitecore, allowing editors to update rules without developer intervention, and different 404 pages can be displayed for multiple languages or brands. The guide also addresses error handli...

Sitecore JSS

2025

5/Jun

Handling 404 Pages, Redirects, and Errors in a Headless Sitecore JSS App

This blog explains how to handle 404 pages, redirects, and server errors in a headless Sitecore JSS app built with Next.js. Unlike traditional Sitecore MVC, routing and error handling are now managed by the frontend. Learn best practices for creating custom 404 pages, implementing both static and dynamic redirects, and handling 500-level runtime errors—all while keeping your site SEO-friendly and content-author-friendly.

Sitecore JSS

2025

4/Jun

Accepted Product Review – Sitecore DXP on G2

I shared an in-depth review of Sitecore DXP on G2 based on my direct experience using the platform. The review was approved and published, adding authentic, practitioner-level insights that help other organizations better understand Sitecore’s capabilities and strengths.

Sitecore XM Cloud

2025

22/May

Choosing the Right Framework for Sitecore JSS: Next.js, React, Vue, or Angular?

This blog helps developers choose the right front-end framework for Sitecore Headless projects. It compares Next.js, React, Vue, and Angular, highlighting their strengths, considerations, and ideal use cases. From SEO and performance advantages with Next.js to the simplicity of Vue or the enterprise readiness of Angular, the guide simplifies framework decisions for Sitecore developers, especially for projects using XM Cloud and other composable tools.

Sitecore XM Cloud

2025

7/May

Content SDK: A Cleaner Way to Build with Sitecore XM Cloud

In this blog, I break down the new Sitecore Content SDK for XM Cloud and explain how it simplifies front-end development compared to the older JSS SDK. I cover why the SDK matters, its key capabilities—GraphQL integration, multi-site support, personalization, analytics, and a ready-to-use Next.js starter—and show how developers can quickly scaffold and configure a project using the CLI. The blog helps teams understand when and why to use the Content SDK, how it improves both developer workflow a...

Sitecore XM Cloud

2025

24/Apr

3 Essential Hooks in sitecore-jss

In this article, I explain the three most important React hooks provided by sitecore-jss—useSitecoreContext, useComponentProps, and useEditingData—and how they simplify development when working with Sitecore JSS and Next.js. I break down what each hook does, when to use it, and provide practical, real-world code examples that developers can directly implement. This blog helps teams build cleaner components, improve editing experiences, and follow best practices while working with Sitecore headle...

Sitecore JSS

2025

14/Apr

Building a Q&A Chatbot with Sitecore Search and Next.js

This blog explains how to build an interactive Q&A chatbot using Sitecore Search and Next.js. It walks through configuring Q&A content in the Sitecore Search CEC portal, connecting the frontend using the useQuestions hook, and displaying exact answers or related suggestions based on user input. The post also covers how to handle responses, show suggestions, manage chat messages, and add animations for a modern UI. It demonstrates how Sitecore Search can power intelligent, real-time chatbot exper...

Sitecore Search

2025

14/Apr

Building a Q&A Chatbot with Sitecore Search and Next.js

This repository contains a complete implementation of a Q&A chatbot built with Sitecore Search and Next.js. It includes the full frontend component generated using the Sitecore Search CLI, integration with the useQuestions hook, and all logic required to fetch exact answers or suggest related questions in real time. The project showcases a fully working chat interface with animations, message handling, and UI enhancements, along with the configuration needed to connect to Sitecore Search. It ser...

Sitecore Search

2025

11/Apr

Answer: onFacetClick and onPageNumberChange are undefined when using useSearchResults in separate component

My answer was accepted by the question owner on Stack Exchange for an issue where onFacetClick and onPageNumberChange were undefined when using useSearchResults in separate components in a Sitecore XM Cloud project. The problem happened because multiple components were using the same RFK ID, causing conflicts between events. I explained that assigning a unique RFK ID to each component ensures that search interactions and pagination work independently, allowing multiple search components on the s...

Sitecore Search

2025

13/Mar

Feature Request for Unable to Display Message Based on Radio Button Selection in XM Cloud Form

I raised a support ticket with Sitecore regarding displaying messages dynamically based on radio button selection in XM Cloud forms. The issue involved showing a custom message when a particular radio button option was selected, but the built-in logic only applied to form fields, not text elements. Sitecore reviewed the case and acknowledged it as a valid limitation and accepted it as a new upcoming feature. This demonstrates my active involvement in identifying gaps, reporting them to the produ...

Sitecore XM Cloud

2025

13/Mar

Feature Request for Option to Hide Form and Show Success Message on Form Submission in XM Cloud form

I submitted a support ticket to Sitecore regarding the behavior of XM Cloud Forms after submission. Currently, the platform allows showing a success message, redirecting to a URL, or doing nothing, but it does not provide an option to hide the form while displaying the success message. I requested a way to automatically hide the form and replace it with a success message after submission. Sitecore accepted this as a valid enhancement and recognized it as an upcoming feature. This highlights my p...

Sitecore XM Cloud

2025

13/Mar

Nesting Components with Placeholders in Sitecore XM Cloud and Next.js

This blog explains how to build flexible, nested layouts in Sitecore XM Cloud and Next.js using placeholders. It walks through creating a three column layout on the frontend, defining matching placeholder settings in Sitecore, and mapping those placeholders to a rendering so editors can add components dynamically. The post highlights how this approach allows content editors to build custom layouts without developer involvement while keeping frontend components reusable and structured. It helps d...

Sitecore XM Cloud

2025

13/Mar

Answer: Render script from multiline field in head tag in Sitecore Headless

I contributed a solution on Stack Exchange for rendering dynamic scripts in the head section of a Sitecore Headless project using Next.js, which was accepted by the question owner. The challenge was that scripts stored in multiline fields were not executing correctly. My approach provided a reliable way to render both inline and external scripts, ensuring they run properly on the page. This helps developers manage dynamic scripts efficiently in Sitecore XM Cloud projects and improves the overall...

Sitecore JSS

2025

7/Mar

Sitecore Hackathon: Sitecore Search with Google Maps Integration (Open source module)

I participated in Sitecore Hackathon 2025 and We developed a custom NPM library designed to simplify the integration of Sitecore Search with Google Maps in Next.js applications. This library allows developers to quickly implement location-based searches using latitude, longitude, and configurable search radii, while providing flexible layout options and minimal configuration. By combining Sitecore Search APIs with Google Maps, users can search for locations and immediately see results based on p...

Sitecore Search

2025

1/Mar

Understanding Sitecore Context in Headless Sitecore Part 1

This blog explains how Sitecore context works when moving from traditional Sitecore MVC to a headless architecture such as Sitecore JSS or XM Cloud. It introduces the concept of Sitecore context, what information it provides, and how this changes when rendering moves to frameworks like Next.js or React. The post clarifies how context data is delivered through the Layout Service or GraphQL instead of the server side Sitecore Context object. It also highlights how developers can use this context o...

Sitecore JSS

2025

26/Feb

Understanding Placeholders in Sitecore JSS and Next.js

This blog explains how placeholders work in a headless Sitecore JSS and Next.js setup, focusing on how components are dynamically rendered on the frontend. It walks through defining placeholder settings in Sitecore, linking them to layouts, and configuring them in a Next.js layout file. The post also covers how to verify placeholder data, handle missing components, and properly register components so they render in the correct placeholder. This guide helps developers clearly understand the end t...

Sitecore JSS

2025

30/Jan

How Sitemaps Work in Sitecore XM cloud and Next.js: Simplifying SEO for Headless Sites

This blog explains how sitemaps function in a headless setup using Sitecore XM Cloud and Next.js, and why they are essential for effective SEO. It covers the role of XML sitemaps in helping search engines discover and index pages, especially on large or complex sites. The post describes how Sitecore manages sitemap data and how Next.js serves that data through an API route, creating a dynamic and always up-to-date sitemap structure. This practical breakdown helps developers understand how to int...

Sitecore XM Cloud

2025

22/Jan

Answer: What all things should be learnt in order to contribute to a Sitecore XM Cloud project?

I provided an answer on Stack Exchange to the question, which was accepted by the question owner. My response outlined the essential knowledge areas, including Sitecore XM Cloud basics, Headless content delivery via APIs, frontend frameworks like React.js and Next.js, GraphQL for content fetching, server-side rendering, and cloud deployment concepts with CI/CD. This recognition highlights my practical understanding of XM Cloud and my contribution to the developer community.

Sitecore XM Cloud

2025

5/Jan

How to Use Dynamic Placeholders in Sitecore: A Simple Guide

This blog explains how to implement dynamic placeholders in Sitecore to build flexible and reusable components. Using a real scenario, adding a share button inside an article banner, I walk through the setup of dynamic placeholder keys, the React code required to render them with Sitecore JSS, and best practices for managing multiple placeholder instances. This guide helps developers understand how to build scalable, dynamic layouts in Sitecore without hardcoded structures.

Sitecore JSS

2025

1/Jan

Started Blog Series - Sitecore JSS Deep Dive with Next.js

A blog series to help more people learn about Sitecore JSS and the growing importance of frontend development in Sitecore’s headless architecture. As Sitecore moves from backend to frontend focus, the role of frontend developers is becoming more important than ever. Through this series, I’ll share practical knowledge and tips to help developers build modern, flexible Sitecore applications.

Sitecore JSS

2024

6/Dec

Preventing Unnecessary API Calls in Sitecore Search Using Next.js (Sitecore JSS)

This blog explains how to optimize Sitecore Search performance using Next.js (Sitecore JSS) by preventing unnecessary API calls. It outlines a method to disable the search API from running automatically when the page loads and only triggers it when the user submits a search. The blog covers step-by-step code implementations for disabling and enabling the API call, improving website performance, reducing server load, and enhancing the user experience. The result is faster page loading and more ef...

Sitecore Search

2024

26/Nov

Answer: How to Prevent API Call in Sitecore Search Until User Submits Search in Next.js (Sitecore JSS)?

To prevent unnecessary API calls in Sitecore Search with Next.js (Sitecore JSS), you can use the query.setEnabled(false) method to disable API requests until needed. This ensures the search API does not trigger on page load or during typing. Once the user submits their search query, you can re-enable the API by setting query.setEnabled(true) and proceed with triggering the search. This approach provides a controlled and efficient search experience.

Sitecore Search

2024

25/Nov

Understanding Dynamic Pages in Sitecore XM Cloud with Next.js

This blog explains how to leverage Next.js's dynamic routing feature, [[...path]].tsx, in combination with Sitecore XM Cloud to build scalable, dynamic websites. It compares two key rendering approaches—Static Site Generation (SSG) and Server-Side Rendering (SSR)—highlighting their benefits and use cases. By using [[...path]].tsx, developers can handle multiple routes without creating individual pages, while seamlessly integrating Sitecore's CMS for real-time or static content delivery. The blog...

Sitecore XM Cloud

2024

13/Nov

A Practical Guide to SSG and SSR in Next.js (with Sitecore JSS)

When building a Sitecore JSS application with Next.js, choosing the right rendering method—Static Site Generation (SSG) or Server-Side Rendering (SSR)—is crucial for optimizing performance and data freshness. SSG in Next.js pre-generates pages at build time, making it perfect for Sitecore-powered static content like blogs, marketing pages, or informational sites, ensuring fast load times. SSR, on the other hand, generates pages on each request, ensuring the content is always up-to-date, making i...

Sitecore XM Cloud

2024

10/Nov

Securing Sensitive API Tokens with Next.js Proxies and Vercel Edge: A Dynamic Approach

This blog details a solution to securely manage sensitive tokens and data in a Next.js project that interacts with multiple APIs, such as middleware services. Initially, the project exposed sensitive tokens by making direct API calls from the frontend, which posed a security risk. To resolve this, the author introduced Next.js API routes as a proxy layer, ensuring that tokens were added server-side and never exposed in client-side code. The solution also used dynamic API routing to streamline re...

Sitecore XM Cloud

2024

7/Nov

Understanding the .env File for Sitecore JSS with Next.js

The .env file in your Sitecore JSS Next.js project configures essential environment variables for connecting to Sitecore and managing content rendering. Key variables include PUBLIC_URL for setting your app's URL, SITECORE_API_KEY for authentication, and SITECORE_API_HOST for the Sitecore API endpoint. For data fetching, use GRAPH_QL_ENDPOINT (if using GraphQL) and FETCH_WITH for selecting GraphQL or REST. The JSS_EDITING_SECRET secures Sitecore editing, while SITECORE_SITE_NAME is useful for mu...

Sitecore XM Cloud

2024

28/Oct

How to Set Up a Sitecore JSS Application with Next.js using the JSS Initializer

This blog provides a step-by-step guide to setting up a Sitecore JSS app using Next.js: Setup: Run npx create-sitecore-jss nextjs to initialize the app, then answer prompts about your app name, Sitecore hostname, and data-fetching preferences (GraphQL or REST). Configure: Update the .env file with your Sitecore API key and hostname. Run: Use npm run start:connected to start the app in connected mode to fetch real-time content from Sitecore. Fix Error: If you encounter the "Cannot read proper...

Sitecore XM Cloud

2024

4/Oct

Clean code practices in Headless projects

I presented in Sitecore User Group hyderabad.In my webinar on Clean Code Practices in Headless Projects, I talked about how to write code that’s easy to maintain and works well in modern web projects. I explained the differences between SSG (Static Site Generation) and SSR (Server-Side Rendering), and why it's important to write clean code for both. I also went over common issues, like hydration errors, that happen when the client and server don’t sync up correctly, and shared tips on how to avo...

Sitecore XM Cloud

2024

27/Sep

Headless Basics Uncovered Frontend Integration Sitecore with React and Next.js

This webinar by Sitecore User Group Mentor and Mentees. In the "Headless Basics Uncovered" session, I covered how to set up a Sitecore JSS project with Next.js and XM cloud using the CLI. I walked through the steps to create and configure the project, as well as the repository structure of a JSS project, explaining where different parts of the application connected and disconnected more. I also went into how everything works together, including how React components integrate with Sitecore throug...

Sitecore XM Cloud

2024

25/Sep

Answer: How to filter based on multiple geo co-ordinates with Sitecore Search

I answered a question on Sitecore Stack Exchange about how to perform multiple geo-filtering using Sitecore's FilterGeo feature. In my response, I suggested using FilterGeoWithin, which is designed for searching within a radius around multiple geographic points. I provided an example where a set of coordinates (latitude and longitude pairs) is used to define several locations, and the FilterGeoWithin is applied to search within a specific radius, such as 7 km. I also clarified the difference bet...

Sitecore Search

2024

25/Sep

Question: How to do distance based sorting in Sitecore Search

I answered a question on Sitecore Stack Exchange about performing distance-based sorting in Sitecore Search using geo-location filters. I explained two types of geo-filters: FilterGeo and FilterGeoWithin. FilterGeo is ideal for searching around a single location, using latitude and longitude to define a specific point. This filter allows sorting based on proximity to that point, like finding items near a store or landmark. I provided an example using FilterGeo to set a 7 km radius around a singl...

Sitecore Search

2024

20/Sep

The “Cannot update a component while rendering a different component” Error in React

This blog explains the common React error, "Cannot update a component while rendering a different component," and provides solutions to fix it. The error occurs when a state update is attempted while React is in the middle of rendering a component, causing potential issues with the render process. Common causes include state updates during child component rendering, side effects in render logic, and misuse of the useEffect hook. The blog offers solutions like moving state updates to event handle...

2024

9/Sep

Third-Party scripts and iframes not Loading on Page Navigation with Sitecore JSS Link in Next.js

I recently asked a question on Sitecore Stack Exchange regarding an issue I'm facing while using Next.js with Sitecore JSS in a headless project. The problem occurs when I navigate between pages using Sitecore's link component to maintain the single-page app (SPA) behavior. When I use this method, third-party scripts and iframes don't load properly on the new page. However, if I use a regular anchor tag instead, everything works as expected, but I lose the SPA functionality. The scripts and ifra...

Sitecore XM Cloud

2024

4/Sep

Answer : Fetch grapghQl response in next js

I provided an answer on Sitecore Stack Exchange regarding how to add content security headers in Next.js that are configurable from the CMS side. I shared two possible solutions with their pros and cons. The first solution involves calling a GraphQL API from Sitecore CMS to dynamically fetch and replace static headers, but this can impact performance and security as it requires server-side calls. The second solution, which I recommend, involves calling the GraphQL API during the build process in...

Sitecore XM Cloud

2024

3/Sep

Understanding and Resolving Next.js Router Slowness in Sitecore JSS

This blog discusses a performance issue encountered while working with Next.js and Sitecore JSS, where page transitions were slow, taking up to 51 seconds. The author investigates several potential causes, including server-side performance issues, large payloads, network latency, and caching problems. After identifying that the slowdowns were mainly occurring in development mode due to the lack of pre-built routes, the solution involved switching to production mode, enabling Static Site Generati...

Sitecore XM Cloud

2024

29/Aug

Managing URL Rewrites in Sitemap with Sitecore XM Cloud and Next.js

This blog provides a step-by-step guide on how to resolve issues with outdated sitemap URLs in a Next.js application integrated with Sitecore XM Cloud. It explains how to handle changes in URL structure, redirects, and rewrites that can cause broken links and SEO issues. The solution involves fetching the sitemap, converting the XML data to text, updating URLs, and serving the updated sitemap to both users and search engines. By following the guide, developers can ensure their sitemap is current...

Sitecore XM Cloud

2024

22/Aug

Implementing CSP Headers in a Next.js Application with Sitecore CMS: A Comparative Analysis

This blog compares two methods of implementing Content Security Policy (CSP) headers in a Next.js app connected to Sitecore CMS:

Solution 1: Fetch CSP headers dynamically from Sitecore CMS via API calls in the client.

Pros: Easy to update headers in Sitecore. Cons: Security risks and performance issues due to runtime API calls on every page visit. Solution 2: Fetch CSP headers during the build process, embedding them in the app.

Pros: Faster performance (no runtime API calls) and bett...

Sitecore XM Cloud

2024

21/Aug

Answer : How to add content security headers in Next.js which are configurable from cms side? where to add?

I recently provided an answer on Sitecore Stack Exchange regarding how to add content security headers in Next.js that are configurable from the CMS side. I shared two possible solutions with their pros and cons. The first solution involves calling a GraphQL API from Sitecore CMS to dynamically fetch and replace static headers, but this can impact performance and security as it requires server-side calls. The second solution, which I recommend, involves calling the GraphQL API during the build p...

Sitecore Search

2024

14/Aug

Next.js Hydration Errors: Understanding and Overcoming Common Issues

This blog explains hydration errors in Next.js, which occur when the server-rendered HTML doesn't match the client-rendered version during the hydration process. These errors are common in SSR applications like Next.js, where content rendered on the server can differ from what React expects on the client. Key causes include mismatched data (e.g., localStorage usage), conditional rendering based on client-side state (e.g., window size), random values (e.g., random numbers), and browser-specific A...

2024

13/Aug

How to remove noreferrer from sitecore jss Link

I gave answer about different way to fix this issue and what is that attribute means in different case

Sitecore XM Cloud

2024

9/Aug

How to Highlight Search Results in Sitecore Search and Next.js

In this blog, I show how to set up a keyword highlight feature in Sitecore Search using Next.js. The goal is to highlight search keywords, like "India’s" in Olympic 2024 articles, in a different color. First, I created a widget in Sitecore Search and added 50 Olympic-related articles. Then, I used the Sitecore API Explorer to configure the highlight settings, wrapping the keyword in custom HTML tags. After confirming the keyword was highlighted in the API response, I added the highlight feature ...

Sitecore Search

2024

9/Aug

How to Highlight Search Results in Sitecore Search and Next.js

I’ve added code to GitHub demonstrating how to implement a keyword highlight feature in Sitecore Search using Next.js. In this project, I show how to highlight search keywords, like "India’s" in Olympic 2024 articles, in a different color. First, I created a widget in Sitecore Search with 50 Olympic-related articles and configured the highlight settings using Sitecore API Explorer. After confirming the keyword was correctly highlighted in the API response, I integrated the feature into my Next.j...

Sitecore Search

2024

24/Jul

Frontend Hacks: Dynamic Data Display In Sitecore Experience Editor using Next.js and React.js

In this blog, I share several practical hacks for working with Next.js, React.js, and Sitecore JSS to ensure content remains editable through Sitecore's Experience Editor. The solutions cover:

Token Replacement in RichText: A custom component that replaces tokens in RichText fields, while keeping the content editable in the Experience Editor. Consistent CSS for RichText: A universal CSS class that applies consistent styling to RichText elements across the site. Fixing Hydration Errors: A so...

Sitecore XM Cloud

2024

3/Jul

Understanding the Latest Fix in Sitecore-Search/React: Reducing Bundle Size and Enhancing Analytics

The latest update to the @sitecore-search/react package brings two important improvements. First, it reduces the bundle size by dynamically loading the order-cloud-sdk, instead of including it in the build, which helps speed up page load times. This change is especially beneficial for large projects like e-commerce sites, where performance is critical. To implement this, developers can configure dynamic imports in Vite, Next.js, or Webpack. The second improvement addresses an issue with widget v...

Sitecore Search

2024

1/Jul

Integrating Progressive Web Apps (PWA) into Your Next.js and Sitecore Applications: A Simple Guide

This blog explains how to integrate Progressive Web App (PWA) features into a Next.js application, with a special focus on working with the Sitecore Starter Kit. PWAs offer benefits like offline functionality, push notifications, fast loading, and the ability to install the app on a user’s home screen. The guide covers setting up Next.js with next-pwa, creating a manifest file, adding service workers, and testing the app.

For Sitecore, additional steps are needed to handle dynamic content, ca...

Sitecore XM Cloud

2024

28/Jun

Sitecore TECH Talks - Experiences of a few Attendees and Speakers of Sitecore SUGCON India 2024

This video we recorded for Sitecore User Group India. In this video, I shared my experience at SUGCON India 2024. Alongside over 60 of our colleagues who traveled from different Horizontal offices to Bangalore, I was fortunate to participate in the event. This year, the conference had a strong focus on Sitecore, and it was exciting to see many of our teammates, including myself, presenting on stage for the first time.

2024

21/Jun

My Experience at SUGCON India 2024

This blog shares my experience attending and speaking at SUGCON India 2024, an exciting conference for Sitecore users. I talk about the key highlights, including Sitecore’s new AI integrations, and what I learned from several insightful sessions. These covered topics like Sitecore XM Cloud, personalization, customer data platforms, and marketing automation. I also discuss my presentation on the AI-powered SEO & Accessibility Assistant for Sitecore CMS, which helps content editors easily optimize...

2024

7/Jun

Unlocking SEO & Accessibility: AI- Powered Assistant for Sitecore CMS

At SUGCON 2024, I and Jatin Prajapati, presented on the challenges content editors face in achieving optimal SEO and accessibility using Sitecore CMS. We introduced an innovative solution: the AI-powered SEO and Accessibility Assistant. This tool simplifies the process of generating relevant keywords and accessibility reports directly within Sitecore CMS, reducing the reliance on external tools and minimizing errors. Our presentation highlighted how this new feature empowers content editors to e...

Sitecore XM Cloud

2024

27/May

Geo Location Filters in Sitecore: Finding Results Near You

This blog explains how to use geo-location filters in Sitecore Search, focusing on two types: geoFilter and geoWithin. The geoFilter is used for pinpointing search results based on a single geographic location (latitude and longitude), while geoWithin is used to filter results within a defined polygonal area. The blog provides code examples for implementing both filters in Sitecore, helping you personalize search results based on the user's location or a specific region. It also discusses when t...

Sitecore Search

2024

22/May

The Evolution of geoFilter in @sitecore-search/react

This blog highlights the changes to the geoFilter feature in the @sitecore-search/react package across three versions:

Version 2.3.0-alpha.0-experimental-54f6cf96 Version 2.4.0-alpha.2 Version 2.4.1-alpha.1 It discusses how the latitude (lat) and longitude (lon) values evolved from optional to mandatory, and then back to optional but encapsulated in a Coordinate object. These changes improve flexibility, structure, and accuracy in handling geo-based searches.

Sitecore Search

2024

29/Mar

Mentee in Sitecore Mentorship Program

I am currently a mentee in the Sitecore Mentorship Program, where I have the privilege of learning from my mentor, Varalaxmi MD. I joined this program with a strong interest in becoming a Sitecore MVP in 2025, as I’m passionate about expanding my knowledge and contributing more to the Sitecore community. Through this mentorship, I have gained valuable insights into Sitecore’s evolving ecosystem, which has further fueled my desire to share my experiences and expertise with others.

2024

21/Mar

Sitecore Search: Bringing Powerful Search to Your Sitecore Headless Apps

This blog shows how to easily add powerful search features to Sitecore headless applications using Sitecore Search. It explains how developers can use Sitecore's JS SDK and UI Components to quickly integrate advanced search capabilities into their React apps. Using a bookstore example, the blog walks through the process of installing packages, setting up components, and adding features like filters, recommendations, and real-time search results. It highlights how simple and beneficial Sitecore S...

Sitecore Search

2024

21/Mar

Sitecore Frontend Development: Simplified Best Practices

This blog is a guide for frontend developers working with Sitecore, highlighting best practices to create efficient, maintainable, and scalable web applications. It covers real-world scenarios and practical examples, including using modular components, optimizing performance, ensuring responsive design, improving SEO and accessibility, handling complex data structures, preventing hydration errors, and organizing code with Sitecore Helix principles. By following these strategies, developers can b...

Sitecore XM Cloud