Following this great post by my colleague Alan I came up with an idea on how to improve the SPEAK pipelines concept. The main problem with the pipelines as they are in Sitecore 7.1 is that there is no way to add or remove processors without making changes in JavaScript code. You can’t even change […]
Month: January 2014
Setting up a Sitecore SPEAK ListControl
The ListControl in SPEAK is made as a generic control for showing lists. Data is fed into the list using a datasource component as shown in my previous post here. In this post I will show how to define the columns in a ListControl and setup the rendering on a SPEAK page. It is kind […]
Creating a simple Sitecore SPEAK JSON datasource
In SPEAK a list is fed with data through a data source. For example to get data into a ListControl the Items rendering parameter on the ListControl has to be bound to a collection on a datasource. When the items model attribute changes, that is when the datasource changes, then the ListControl automatically refreshes and […]
Using SignalR in a Sitecore 7.1 SPEAK application
During the Sitecore Hackathon we decided to implement a chat app for Sitecore editors so it is possible to send text messages to other online editors. To do this we wanted to use SignalR and SPEAK for the UI part. Setting up SignalR and creating the SPEAK layout was done quickly but it quickly became […]
The rather unknown StringUtil class in Sitecore
This is just another quick tip about the Sitecore API and this one has been around forever but I rarely see it used. I use it quite often myself when I perform URL or path manipulations so now I want to spread the knowledge so others can benefit from this helping class as well. It […]
Nesting if statements
This post is not only about Sitecore development it is valid for any code written in almost any language. It is about making code easier to read. The post is somewhat subjective but I hope that all developers with an IQ higher than 80 will agree. Back in the days when I learned to write […]
Profiling your Sitecore code using ProfileSection
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 […]