Skip to main content

Posts

Replace SXA based SelectRendering dialogs by vanilla Sitecore SelectRendering dialogs

This post intends to get you familiar with how Sitecore manages SelectRendering dialogs found in  Experience Editor , how  Sitecore Experience Accelerator (SXA)  module is able to override those dialogs and how we can still use vanilla Sitecore based SelectRendering dialogs even after installing SXA module. We are working on upgrading our application from Sitecore 8.2 to Sitecore 10.1.1. We have 100+ sites in our  existing   Sitecore instance and we are moving them from vanilla Sitecore sites to SXA based sites. Problem While testing the pages in Experience Editor, we noticed that the SXA based SelectRendering Dialog is different from vanilla Sitecore 10.  For e.g. when you click on Add Here to add a rendering  on your page  in Experience Editor in Sitecore 10, below dialog opens up -  Due to the structure in our legacy Sitecore 8 application, lots of tabs started appearing in SelectRendering dialog which looked confusing as in snapshot above. This also created another problem. With so

Hide Cloning Option in Sitecore Experience Editor's Select Rendering Datasource Dialog

This post intends to get you familiar with where Sitecore keeps code for dialogs that are rendered in Experience Editor and how they can be modified using a problem we solved recently. PROBLEM We may want to hide some out-of-box elements in Sitecore's Experience Editor for meeting specific business needs. In our case, w e were upgrading from Sitecore 8.2 to Sitecore 10.1.1 recently and migrated our vanilla Sitecore sites to be SXA site.  We decided to keep content author experience in Sitecore 10 instance as close as possible to Sitecore 8 so that we don't end up re-training our content authors spread globally almost in every country. Obviously, SXA presents a slightly different interface in Experience Editor and we started finding workaround for them. We observed that, in Experience Editor, while creating/selecting a rendering's datasource, there is a new  Clone Current Content option which didn't exist in Sitecore 8 as in snapshot below -  This option was new to Conte

SQL timeouts in Sitecore instance due to High Index Fragmentation

Sitecore server performance depends a lot on underlying SQL server performance. If SQL server performance decreases, Sitecore server performance will decrease too. That's why its important to have SQL server maintenance plans.  Maintenance plans create a workflow of the tasks required to make sure that your database is optimized, regularly backed up, and free of inconsistencies. You can learn more about maintenance plans here . We observed that a poor maintenance plan can lead to SQL timeout errors in application and the high fragmentation level in the SQL indexes can have major role to play in it. Sitecore recommends keeping index fragmentation below 10% If you see error in your logs which read something like below, its time for you to check your index fragmentation levels and revisit your SQL server maintenance plans -  Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. How to know if index fragmentation is

Sitecore 10 : Queues removed in Data Exchange Framework newer versions

 If you have used Data Exchange Framework with Sitecore, you would be familiar with the concept of Queues and Queue Processors . A queue processor reads entries from a work queue and then handles each entry. Which entries and how each entry is handled is determined by the queue processor. Queues and Queue Processors appear in your Data Exchange Framework tenants at following path - /sitecore/system/Data Exchange/Your Tenant/Queues If you are upgrading to Data Exchange Framework 6 like us from an older version, you will find that these Queues related items don't exist in your tenant anymore in a new installation. If you have upgraded your databases or installed Data Exchange Framework package on top of older version, you may still see these items as they may have not got removed. You may want to test the impact on your Data exchange framework functionality and remove them. It is recommended to find what particular things the custom processors and converters used in Queues were desig

Sitecore Publishing Service - An error occurred while starting the application

The Publishing Service module is an optional replacement for the existing Sitecore publishing methods. This module increases publishing throughput, reduces the amount of time spent publishing large volumes of items, and offers greater data consistency and reliability. The module also improves the user experience and provides better visual feedback to the user on the state of the publishing system. We decided to use  Sitecore Publishing Service  due to large amount of content in our Site nodes and site publishes that run for more than an hour. Problem When we started implementing with Sitecore Publishing Service on our development machines by following the instructions from SPS installation guide, we got stuck at point where the SPS won't start and will give an error as in the snapshot below -  Solution To solve this problem, we started looking into the logs but the logs did not even record this activity. We were left clueless. We decided to start this service using powershell. Powe

Bug in Sitecore 10 - Unable to move out of box items

In this blog, I will describe about a Sitecore bug in version 10.1.1 where developers face issues if they try to use out-of-box placeholder items and especially when they try to move them from their default location. Problem We are working on upgrading from Sitecore 8.2 to Sitecore 10.1.1. We are making use of content placeholder present in Sitecore placeholder settings out of the box.  We are updating our solution to follow Helix conventions and decided to move the content placeholder to Project folder. But we encountered a weird issue in moving the 'content' placeholder to any Helix layer. To our surprise, it wont move after numerous attempts. We tried dragging the content placeholder item but that didnt work. Then we tried copying it using right click but that too didnt work. We tried updating its location in ymls related to it and then pushed the item but no success was achieved. Solution We created a Sitecore support ticket to understand this behavior Sitecore support team

Sitecore setting Rendering.HtmlEncodedFieldTypes

Problem In our Sitecore 8 solution, content authors used to add encoded values for html tags like &nbsp; etc. in Multi-line text field and it worked correctly. When the solution was upgraded to Sitecore 10, all the html tags in multi-line text field started to get rendered as plain text instead of html as in snapshot below -  Solution RENDERING - HTML ENCODED FIELD TYPES This setting specifies a pipe-separated list of field types that should be HTML encoded when rendered by the <renderField> pipeline. Default value: text|single-line text|multi-line text We found that this setting has multi-line text included now which wasnt the case in Sitecore 8 -  <setting name="Rendering.HtmlEncodedFieldTypes" value="text|single-line text|multi-line text" /> To fix this, we removed multi-line text from the value of this setting using below patch -  <configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:environment="http://www.sitec