How to hijack Sitecore instance using only cookie information

Or how to scare any project manager, sales guy or customer into choosing to run their site on https. This is not going to be a lesson in how to obtain cookie information sent over a network. You can find a ton of youtube videos and other resources on how to setup a tool like cain and abel to do this in minutes. This post is not really about Sitecore either, the example just shows a Sitecore site, ...

October 17, 2013 · 4 min · alc

Inheriting renderings in Sitecore

A typical page layout contains an aside column beside the main content. These aside columns typically contain spots, boxes or whatever you will call them. We call them spots at Pentia. What is the problem then? When using the page editor for inserting and personalizing renderings then there is a 1 - 1 relation with the rendering reference that is inserted and the item. Inserting aside spots on each and every page is extremely time consuming for editors and might also exceed their Sitecore knowledge if they’re not trained. ...

October 15, 2013 · 5 min · alc

Sitecore item languages

This is my fourth post in a series about creating .NET extension methods on a Sitecore item. I love extension methods and have been using them to wrap common operations on Sitecore items since they were introduced in .NET 3. The series of posts will also contain an architectural description on how to implement and maintain your extension methods so these are re-usable in all of your Sitecore solution s. ...

October 15, 2013 · 2 min · alc

301 URL mappings in Sitecore done easy

When migrating an existing website to a new Sitecore solution the customer typically want to retain their Google Page rank earned by links pointing to their site. To transfer the page ranks of old pages to new ones the response needs a 301 permanent redirect status code and then redirect to a new page which content some what corresponds to the content found on the old url. A simple example ...

October 14, 2013 · 4 min · alc

Does an item have renderings

This is my third post in a series about creating .NET extension methods on a Sitecore item. I love extension methods and have been using them to wrap common operations on Sitecore items since they were introduced in .NET 3. The series of posts will also contain an architectural description on how to implement and maintain your extension methods so these are re-usable in all of your Sitecore solution s. ...

October 13, 2013 · 1 min · alc

Has references to a Sitecore item

This is my second post in a series about creating .NET extension methods on a Sitecore item. I love extension methods and have been using them to wrap common operations on Sitecore items since they were introduced in .NET 3. The series of posts will also contain an architectural description on how to implement and maintain your extension methods so these are re-usable in all of your Sitecore solution s. ...

October 13, 2013 · 2 min · alc

Get referrers as Sitecore items through the link database

This is my first post in a series about creating .NET extension methods on a Sitecore item. I love extension methods and have been using them to wrap common operations on Sitecore items since they were introduced in .NET 3. The series of posts will also contain an architectural description on how to implement and maintain your extension methods so these are re-usable in all of your Sitecore solution s. ...

October 13, 2013 · 3 min · alc

A Sitecore update bummer

When update 6.6 rev 130111 was released I upgraded a customer solution from the previous 6.6 release thinking that this was only a minor update which would solve some of the other issues the previous revision have had. I was terrible wrong and the upgrade led me into a ton of trouble. The first issue in the new revision was an added processor in the renderField pipeline. <renderField> ... <processor type="Sitecore.Pipelines.RenderField.GetTextFieldValue, Sitecore.Kernel" /> ... </renderField> This processor ensures that all text fields and multi line text fields is output escaped when rendered through the renderField pipeline. ...

October 13, 2013 · 3 min · alc

Developing Sitecore sites using DMS Personalization rules

As a developer it can be a rough road to start developing with DMS. Where do I start? How do I build a site that is accommodating to DMS? These are tough questions. In this post I will give some simple pointers that should get you started quick and easy on the right path. DMS has a thousand different applications and features, but the one that I feel is most useful for us developers and the easiest to start with is the personalization rules. These rules give us freedom and a great way to separate responsibilities away from our web controls. ...

October 13, 2013 · 3 min · eok

A note about Sitecore pipelines

My two previous posts both contained implementations of custom processors for the httpRequestBegin pipeline. Just a quick explanation about their structure and some absolute best practices when implementing your own Sitecore pipeline processors. Check and exit fast Since the httpRequestBegin pipeline handles all requests it is extremely important to check the context for validity before continuing processing. If a simple check fails then exit the processor right away. Example public class MyCustomProcessor { public void Process(PipelineArgs args) { if (!IsContextValidForProcessor()) return; DoSomeOperation(); } } This rule applies for all pipeline processors, if the context is not valid for the operation exit immediately and let the rest of the pipeline continue on. ...

October 13, 2013 · 2 min · alc