Category: Sitecore

Spatial Search with Sitecore Search: Filtering by Location

Using Geographic Filters in Sitecore Search Today, I’ll walk you through how I used Geographic filters in Sitecore Search to query results based on a user’s latitude and longitude. Sitecore Search provides two types of geographic filters: geoDistance geoWithin In my case, I implemented the geoDistance filter. Step 1: Create a GEO Attribute First, create … Continue reading Spatial Search with Sitecore Search: Filtering by Location

How to Attach Legacy Sitecore Database to XM Cloud Locally And Migrate Content Using CLI

As part of our migration from legacy Sitecore 9.1 to Sitecore XM Cloud I needed to access content from legacy Sitecore 9.1 master database, In this post, I’ll walk you through how I attached the database to my local XM Cloud and migrated the content using Sitecore CLI. This blog post is divided into two … Continue reading How to Attach Legacy Sitecore Database to XM Cloud Locally And Migrate Content Using CLI

Debugging GraphQL Errors After Migrating Sitecore Templates from Sitecore 9.1 to XM Cloud

Today, I’d like to share an error I encountered while migrating Sitecore XP 9.1 templates to Sitecore XM Cloud (XMC). After successfully migrating the templates, I attempted to run the Layout Service using GraphQL IDE, but encountered the following error: { "error": "Unexpected token '<', \"<!DOCTYPE \"... is not valid JSON" } At first glance, … Continue reading Debugging GraphQL Errors After Migrating Sitecore Templates from Sitecore 9.1 to XM Cloud

Resolving ‘Never Publish’ Item Visibility Issue in Sitecore XM Cloud with Custom Content Resolver

In this blog post, we will discuss a common issue which we faced in Sitecore XM Cloud where items marked with the "Never publish" setting appear in listings when their parent folder is used as a data source item. We will walk through the steps to create a custom content resolver to address this problem … Continue reading Resolving ‘Never Publish’ Item Visibility Issue in Sitecore XM Cloud with Custom Content Resolver

Sitecore XM Cloud enhance Device Editor and resolve security error invoked via reflection.

We all know that adding new renderings in the Device Editor always places them at the bottom, which could be inconvenient for items with many renderings. In Sitecore XM cloud, I did a POC using XM Cloud Starter Kit code on my local running on docker to enhance the Device Editor by adding two new … Continue reading Sitecore XM Cloud enhance Device Editor and resolve security error invoked via reflection.

Sitecore Powershell : Fetch items which have multiselection in ‘MultilistField’ field using Reg Ex.

Recently we had a requirement to find items having more than one selection in 'MultilistField' field along with the display text of these selection. For this I have written a simple Powershell script that I want to share. Here I have used a regular expression '^({[^}]+}|?){0,1}$' to find if the 'MultilistField' is having more than … Continue reading Sitecore Powershell : Fetch items which have multiselection in ‘MultilistField’ field using Reg Ex.