Skip to main content

Posts

Showing posts with the label Sitecore

Featured post

XM Cloud content sync from prod to uat or UAT to prod step by step

When working with Sitecore, it’s common to need content synchronization across environments. Today, I’ll walk you through the steps to sync content from Production to UAT/TEST and vice versa. Steps to Follow 1. Set Up Your Workspace Create a folder on your computer where you will manage the script files and exported data. Open the folder path in PowerShell to begin scripting. We need to run some scripts in PowerShell to update the folder with the basic requirements for syncing content. PS C:\Soft\ContentSync> dotnet new tool-manifest PS C:\Soft\ContentSync> dotnet nuget add source -n Sitecore https://nuget.sitecore.com/resources/v3/index.json PS C:\Soft\ContentSync> dotnet tool install Sitecore.CLI PS C:\Soft\ContentSync> dotnet sitecore cloud login If the above error occurs, you will need to run a different command to resolve the issue. PS C:\Soft\ContentSync> dotnet sitecore init now, Again run above command to open and authenticate with XM Cloud. It will be there a...

how to fix Sitecore JSS Experience Editor Issue in branch template

 We can fix the branch template experience editor by using below config changes. sitecorePath - change the branch template folder path folder need to create by using template -  /sitecore/templates/Foundation/JavaScript Services/App   <app role:require="Standalone or ContentManagement" name="branchTemplateApp"                      filesystemPath="/dist"                      sitecorePath="/sitecore/templates/Branches/Newbranch"                      useLanguageSpecificLayout="true"                      graphQLEndpoint="/api/branchTemplateApp"                      inherits="defaults" /> role:require="Standalone or ContentManagement": This attribute specifies the roles required to access the app. In ...

PowerShell script to migrate content in Sitecore while taking specific item from CSV File

It's easy to read CSV file and migrate list of item which is specified in csv file. Upload CSV file at media item location . You can see below url which have mentioned. $url = "https://tst-cdn.domain.net/-/media/domain/temp/ItemName.ashx?x=1" $data = Invoke-WebRequest -uri $url  -UseBasicParsing | Select-Object -Expand Content $TargetLangs = @("zh-cn","zh-hk","fr","de","it-it","es-es","th-th") $csv = ConvertFrom-Csv $data $sourceItemPath = "master:\sitecore\content\SLA\corporate\" $destinationItemPath = "master:\sitecore\content\Shared Pages\Shared Press Releases\Corporate\" $templateId = "{7B0B5195-5462-444E-8D5A-40941F2EC9B5}" Write-Host "Get the source items and their fields" ForEach ($csvItem in $csv)  {     $increment=$increment+1     $csvItemName = $csvItem.URL.Replace("-"," ")     if($csvItemName)     {          $sourceItem = Get-ChildIt...

Sitecore computed field implementation and uses

  In Sitecore, computed fields can be implemented using the ContentSearch API. Computed fields allow you to dynamically generate values for fields based on custom logic or calculations. Here's an overview of how computed fields can be implemented and their common uses in Sitecore: Implementation of Computed Fields in Sitecore: 1.     Define a computed field class: Create a class that inherits from the Sitecore.ContentSearch.ComputedFields.IComputedIndexField interface. This class will contain the logic to calculate the computed field value. 2.     Implement the ComputeFieldValue method: Override the ComputeFieldValue method from the IComputedIndexField interface in your computed field class. This method receives an IIndexable object, which represents the item being indexed, and returns the computed field value. 3.     Implement the logic: Inside the ComputeFieldValue method, write the logic to calculate the computed field v...

How to Setting up local development environment with XM Cloud and containers

   To set up a local development environment with XM Cloud and containers, you will need to follow these steps: Install Docker: Docker is a containerization platform that allows you to run applications in isolated containers. Install Docker on your local machine. Install Docker Compose: Docker Compose is a tool that allows you to define and run multi-container Docker applications. Install Docker Compose on your local machine. Create a Docker Compose file: Create a Docker Compose file that defines the services you want to run. In this case, you will need to define a service for XM Cloud. Configure XM Cloud: In the Docker Compose file, configure the XM Cloud service by defining the necessary environment variables, such as your XM Cloud API key and secret. Build the containers: Build the containers by running the "docker-compose build" command. This will create a Docker image for the XM Cloud service. Start the containers: Start the containers by running the "docker-compose...

How to Setting up an XM Cloud environment and project ?

   Setting up an XM Cloud environment and project requires the following steps: Sign up for an XM Cloud account: To use XM Cloud, you will need to sign up for an account on their website. You can choose between a free trial or a paid subscription. Create a project: Once you have signed up, you can create a new project in the XM Cloud dashboard. A project represents a set of resources and configurations that are used to manage your customer interactions. Configure your project: You can configure your project by defining settings such as the messaging channels you want to use, the language and region settings, and any other custom settings you need. You can also configure integrations with other systems, such as your CRM or marketing automation platform. Create a conversation flow: A conversation flow is a series of messages and interactions between a customer and your business. You can create conversation flows in XM Cloud using a visual flow designer that allows you to drag an...

XM Cloud Architecture

   XM Cloud is a cloud-based service that provides businesses with tools and solutions for improving their communication and collaboration with customers. The XM Cloud architecture is designed to be scalable, reliable, and secure, ensuring that businesses can efficiently and effectively manage their customer interactions. Here are some key components of the XM Cloud architecture: Cloud Infrastructure: XM Cloud is built on top of cloud infrastructure provided by leading cloud providers such as Amazon Web Services (AWS) and Microsoft Azure. This provides scalability and reliability, ensuring that businesses can easily scale up or down as needed and that the system is always available. Microservices: XM Cloud is built on a microservices architecture. This means that the system is broken down into small, independent services that can be easily deployed and scaled. This architecture allows for greater flexibility and agility, enabling XM Cloud to adapt to changing customer needs qu...

Why XM Cloud?

   XM Cloud is a cloud-based service that offers a range of tools and solutions for businesses to improve their communication and collaboration with customers. Some of the benefits of using XM Cloud include: Increased efficiency: XM Cloud allows businesses to automate their communication processes, reducing the time and resources required to interact with customers. Improved customer experience: With XM Cloud, businesses can offer personalized and timely communication to their customers, improving their overall experience with the brand. Real-time analytics: XM Cloud provides businesses with real-time data and analytics to monitor and analyze customer interactions, allowing them to make data-driven decisions to improve their services. Flexibility and scalability: XM Cloud is a flexible and scalable solution, allowing businesses to customize their communication strategies to meet their specific needs and scale up or down as required. Overall, XM Cloud can be a valuable tool for...

SItecore Templates - Types, Inheritance, Standard Values

  Sitecore templates are used to define the structure of content items within Sitecore. They define the fields, sections, and other properties that are used to create content items. Here are some important aspects of Sitecore templates: Types of Templates: Sitecore has three types of templates: Standard Template, Branch Template, and Template. Standard Template - This is the simplest type of template and is used to define a single content item. It does not support inheritance or creation of items based on the template. Branch Template - This is a template that includes one or more standard templates and is used to create a hierarchy of content items. Branch templates support inheritance, and all of the fields and sections defined in the included templates are available in the created content items. Template - This is a template that can inherit from other templates and is used to create a flexible structure for content items. A template can inherit from one or more templates, a...

Field Types in sitecore

  Sitecore is a popular Content Management System (CMS) that uses a flexible and extensible data model called the Sitecore Data Model (SDM) to manage and organize content. The SDM provides a way to define and organize content types in a structured way, and it includes several different types of fields that can be used to store and manage data. Here are some of the most common field types in Sitecore: Single-Line Text - This field type is used for simple text inputs such as a name or a title. Rich Text - This field type is used to enter formatted text with options for adding links, images, and other multimedia. Multi-Line Text - This field type is used for longer blocks of text, such as a description or a summary. Number - This field type is used to store numeric values. Date - This field type is used to store a date. Checkbox - This field type is used for boolean values, such as yes or no. Droplist - This field type is used for a list of predefined options, where the user can s...

Explain Sitecore architecture

  Sitecore is a complex and robust platform that provides a wide range of capabilities for managing digital experiences. Its architecture is designed to be modular and extensible, allowing developers to build custom solutions on top of the core platform. Sitecore architecture includes the following key components: Web Content Management: Sitecore's web content management (WCM) capabilities allow users to create and manage content on websites. The WCM component is built on top of the ASP.NET framework and uses the MVC pattern for rendering web pages. Experience Database: The Experience Database (xDB) is a data store that stores data related to customer interactions and behaviors. It includes data from a variety of sources, including website interactions, email campaigns, social media interactions, and other channels. Marketing Automation: Sitecore's marketing automation capabilities allow users to create personalized campaigns and messages based on customer data. It includes...

Sitecore Overview (Products, Community, Portals & Developer Trail Program)

  Sitecore is a leading customer experience management platform that enables businesses to create and deliver personalized experiences across channels and touchpoints. Here is an overview of Sitecore's products, community, portals, and developer trail program. Products: Sitecore has several products that cater to different needs of businesses. Sitecore Experience Platform (XP): A comprehensive platform that allows businesses to manage content, commerce, and customer data in one place. It includes features like web content management, marketing automation, and personalization. Sitecore Experience Commerce (XC): A platform that enables businesses to create personalized shopping experiences for their customers. It includes features like product management, inventory management, and order management. Sitecore Content Hub: A content management system that helps businesses create, manage, and deliver digital content. It includes features like digital asset management, content collaborati...

What is Sitecore? And how did it evolve from CMS to Experience Platform

  Sitecore is a customer experience management software that helps businesses create and manage digital content across various channels, including websites, mobile devices, email, and social media. It offers a range of features such as content management, personalization, analytics, and marketing automation to help businesses deliver personalized and relevant experiences to their customers. Sitecore began as a content management system (CMS) in 2001, but over time it evolved into a more comprehensive customer experience platform (CXP) that goes beyond content management. Sitecore's evolution into an experience platform involved the addition of various features that help businesses engage with their customers across multiple touchpoints and channels. These features include: Personalization: Sitecore allows businesses to personalize their customers' experiences by collecting and analyzing data on their behavior, preferences, and past interactions with the business. This enabl...

ItemResolver pipeline implementation in sitecore with C# code with example

 ItemResolver pipeline implementation in sitecore with C# code with example The ItemResolver pipeline in Sitecore is used to resolve the item based on the URL requested by a visitor to the website. The pipeline is executed whenever a request is made to the website and is responsible for mapping the requested URL to a Sitecore item in the content tree. Here is an example implementation of the ItemResolver pipeline in C#: using Sitecore.Pipelines.HttpRequest; using Sitecore.Data.Items; namespace Sitecore.Custom.Pipelines.ItemResolver {     public class CustomItemResolver     {         public void Process(HttpRequestArgs args)         {             // retrieve the requested URL             string requestedUrl = args.Url.FilePath;             // retrieve the item based on the requested URL             Item it...