Getting started with Unicorn serialization for Sitecore Experience Accelerator (SXA) – part 2

In this article, I will show you my approach to setup Unicorn serialization for Sitecore Experience Accelerator (SXA) 1.8 using Sitecore 9.1.0 and Unicorn 4.0.7. This is the second part of the series of posts about Unicorn serialization. If you would like to start from the very beginning and read an introduction to Unicorn have a look at part 1. If you do not feel comfortable with Helix principles please check the documentation because I assumed that understanding of basic concepts is a prerequisite for the rest of the article. Sitecore structure For the demo purpose, I created a single-tenant solution with one…

Read More

Setting custom field as Browser Title in SXA

This is one of these things that are super obvious when you know about them, but you may waste some time to figure it out if you were not aware that it exists out of the box. This short post is here to save your time and show you how cool is Sitecore Experience Accelerator. :) The new "browser title" field Imagine that you got a task to create a new field called "Browser title", which will be a part of every page on your site. As the name suggests, this field will be responsible for rendering the title in the…

Read More

Getting started with Unicorn serialization for Sitecore – Part 1

I decided to write a series of articles about Unicorn serialization and how to configure it in a Sitecore SXA project. This article is the first one in the series and is just a brief introduction to Unicorn explaining basic concepts, mostly directed towards people that used different serialization tools in the past and are just starting with Unicorn. If you are familiar with the basics you can jump straight away to part 2 where I cover serialization for SXA in detail. In the configuration examples, for the purpose of this article, I used Sitecore 9.0.2 with Unicorn 4.0.2 with…

Read More

Azure tricks – How to show all files in Kudu Diagnostic Console, not just the first 199 items

When navigating to your site wwwroot in Kudu Diagnostic Console on Azure by default you can only see the first 199 directories and files. For large directories with more files, it's a problem because it hides important files that you would like to browse. Luckily it is easy to manipulate the number of files to show: 1. Install LocalStorage Manager for Chrome 2. Open LocalStorage Manager by clicking on its shortcut on the top right corner 3. Click "Add" to add new variable "maxViewItems" and click OK   4. In the next window type in the number of items you want…

Read More

Elegant one-line way to use TryParse

I don't know how about you, but for me using int.TryParse() always feel somehow not right, resulting in an ugly three lines of code to do just one operation: int value; if (!int.TryParse(valueToParseFromString, out value) value = 0; If you are looking for cleaner code to satisfy your inner pedant you can use this one-line solution instead: int value = int.TryParse(valueToParseFromString, out value) ? value : 0; It will parse the valueToParseFromString and on success assign it to the value variable, otherwise it will return 0.

Read More