Just a quick tip for profiling your custom code in Sitecore. Over the years I have seen many different approaches used for measuring and logging the time it takes to execute a block of code. Many of these quite unnecessary since Sitecore already has this functionality built in. Sitecore has a lot of very useful […]
Using threshold warning limits in Sitecore
When working on an old Sitecore solution the log files are almost always completely spammed with different threshold warnings. 744 10:28:14 WARN Item threshold exceeded for web page. Items accessed: 2578. Threshold: 2000. Page URL: /xxxx.aspx 7672 10:28:15 WARN Item threshold exceeded for web page. Items accessed: 29145. Threshold: 2000. Page URL:xxxx.aspx 7672 10:28:15 WARN […]
Should be Sitecore best practices
During my work at Pentia I often perform health checks of existing Sitecore solutions built by other Sitecore partners. The solutions vary a lot in both quality and age but there are a few things which I need to point out as missing in each and every report. It is like it is secret Sitecore […]
Creating custom Sitecore SPEAK rule Conditions and Actions
After writing my previous post about Sitecore SPEAK rules magic I got really excited when I realized how extremely easy it is to add new actions and conditions to the SPEAK rules engine. So here goes. To make any real sense of this post I would suggest that you start reading from my first post […]
Sitecore SPEAK rules magic
At this time of year everyone is speaking about Christmas magic, but today I will show you some SPEAK magic using rules. Following the example I gave in my last post where we made a text clickable and then changed the background color depending on the click, now let us make a rule which hides […]
Part 4: Introducing Sitecore SPEAK Components
This post is the fourth and final in a series about Sitecore SPEAK components. Now we have seen how a SPEAK component is built in part 1, 2, and 3. In this post I will show a full example of a really simple custom control. Why create a Custom SPEAK component anyway? Sitecore delivers 70++ […]
Part 3: Introducing Sitecore SPEAK Components
This post is the third in a series about Sitecore SPEAK components. A SPEAK control rendering can be implemented in two ways. Simple approach, the control consists of a Razor view, a Javascript file and potentially some styling. Advanced approach, consist of the same as the simple approach with two C# classes and some extension method […]
Part 2: Introducing Sitecore SPEAK Components
This post is part 2 in a series showing how to create custom Sitecore SPEAK components. In this post I will show how to setup a custom SPEAK component in Sitecore. It is actually just setting up a rendering in Sitecore and then creating a rendering parameters template for it which is actually just a template […]
Part 1: Introducing Sitecore SPEAK Components
This post is part 1 in a series showing how to create custom Sitecore SPEAK components. It is time for Sitecore developers to learn Javascript and become all around web developers not just hiding back in the save haven of the server. Like it or not this is the way things are going. Looking on the […]
Issues with Design Importer 2.0, Sitecore 7.0 and ECM 2.1
The silence is broken, this is my first blog post for the last 3 weeks time since I’ve been renovating my apartment. But now I’m back first with this small information post. I was installing a clean Sitecore 7 with ECM 2.1 and design importer 2.0 for Sitecore 7 yesterday. The design importer was working […]
Sitecore 7, Lucene 3.0 and Highlighted results
For all you that will use Lucene 3.0 under Sitecore 7 and want to highlight your results using Luce.Net.Contrib libraries, let me save you a whole lot of time. On Lucene.net page http://lucenenet.apache.org/ you will find a reference to the above mentioned package which i used for retrieving highlighted results from my Lucene index. All nice and […]
Switch the Context Item
Some times you’ll come across some code which relies on reading the Sitecore.Context.Item and there is no way for you to change this. This can occur when calling some standard Sitecore pipelines, some custom code which has been inherited without the source etc. Well, Sitecore API to the rescue. Introducing the ContextItemSwitcher I am not […]