An example of unit testing with Sitecore

I have been studying unit testing and investigating how I can use it on Sitecore projects. One good usage I discovered (despite all the extra work now I have to setup a unit test project) is writing a code that uses Sitecore API and I can actually trust.

In this post, I give an example of how unit testing can speed up your development process and give you extra reliability on your code.

Continue reading “An example of unit testing with Sitecore”

4 things I didn’t know about Experience Editor

As a developer, I tend to not pay too much attention to certain parts of Sitecore. Some of those parts are the functionalities available on the Experience Editor. Here I share four things I recently learned about the Experience Editor.

I am currently taking the Sitecore® Web Experience Management eLearning. This eLearning is designed for content authors who want to learn about Sitecore content editing features. It is helping me to see how “normal people” use Sitecore.

Continue reading “4 things I didn’t know about Experience Editor”

Publishing Service: Scheduled publishing

Publishing Service enables you to schedule tasks through the task scheduler. It comes with the PublishTask and PublishJobCleanUpTask default tasks. The good news is that we can create custom scheduled tasks as well.

In this post, we are going to create a scheduled publishing task which on a given Interval queues a new publish job.

Continue reading “Publishing Service: Scheduled publishing”

Publishing Service: BulkPublishingEnd pipeline

Sitecore Publishing Service replaces the existing Sitecore publishing methods with a faster, reliable and user-friendly solution. It reduces the amount of time spent publishing large volumes of items and provides better visual feedback to the user. It was released for Sitecore 8.2 and is also available for Sitecore 9.

In this post, I am going to write about the publishEndResultBatch pipeline. An event pipeline that Sitecore starts after Sitecore Publishing Service finishes publishing each batch of items.
Continue reading “Publishing Service: BulkPublishingEnd pipeline”

Publishing Service: Enable “Debug” logging level

The Publishing Service is a module that replaces Sitecore publishing functionality. This module increases the speed for publishing large volumes of items and improves the user experience.

As the Publishing Service runs on a separate process to the Sitecore CM instance, it contains its own logging file located at the (PublishingServiceInstallationFolder)/logs folder. By default, it only logs data on the “Information” logging level.

In this post, you will learn how to set the “Debug” logging level to get more information.
Continue reading “Publishing Service: Enable “Debug” logging level”

A simple trick to get more information out of the Sitecore logs

Recently, I was struggling with one particular Sitecore site that was taking too much time to load in my development environment. Sometimes I would think that it just got stuck and then I would try restarting the application pool or even running an iisreset.

This article shows a quick tip if you want to get more out of the Sitecore logs by doing a simple trick: enabling the DEBUG level.

Continue reading “A simple trick to get more information out of the Sitecore logs”

A Visual Studio Hack for Sitecore Developers #1

If you use static classes or structs to store Sitecore IDs, sometimes you just copy and paste an existing class/struct and replace the copied IDs with new ones. Having to replace one ID is easy. It turns out sometimes you have to clean 10, 20 or maybe 50 IDs, which is repetitive and time consuming.

In this article I show you how to quickly replace those IDs with empty strings.

Continue reading “A Visual Studio Hack for Sitecore Developers #1”