Modular Architecture is a set of principles and methodologies used in Sitecore Habitat to showcase Sitecores recommended best practices for solution architecture in a Sitecore solution. This is my second post on Modular Architecture and Sitecore Habitat. If you haven’t read the first post already you can read it here. What are layers in Modular Architecture? The concept of […]
The groundbreaking Sitecore Habitat
Sitecore released a new demo site late September called Sitecore Habitat. There is nothing new in Sitecore supplying a demo site but this one is nothing less than groundbreaking, it is a real revolution in the way that Sitecore teaches developers to work with their product. In the latter days Sitecore would never explain how to structure […]
How to extend placeholders in Sitecore MVC
Wow it has been ages since I last wrote a blog post so it is about time that I get started again. A colleague of mine asked me a question the other day about how I would implement a page(experience)-editable accordion spot where each element in the accordion is a rendering item. Kind of like shown below […]
Gzip WebApi Response Content using an attribute
Today I was asked why json responses from WebApi was not being gzipped since it brought down our score on Google Page Speed. So yet again I started my ongoing fight with Google Page Speed. It turns out that we had issues making IIS gzip application/json data. Since we do not have direct access to […]
Comparing DI frameworks with Sitecore ReflectionUtil
As a follow up on my last post about IoC / DI containers and how to use the Sitecore API to perform inversion of control using ReflectionUtil, I’ve made a quick speed comparison of some common DI frameworks, Sitecores ReflectionUtil and the new keyword as the best case for how quick it is to instantiate […]
Simple IoC container using only the Sitecore API
Lately there has been a lot of discussions on twitter about using different third party frameworks for Inversion of Control using Dependency Injection in Sitecore solutions. The arguments in these discussions can be almost religious, either for or against using a specific third party IoC framework. There are two extremes, on one side the developers who […]
Working with custom MongoDB collections in Sitecore 8 using WebApi
The introduction of the xDB to the Sitecore eXperience Platform offer a ton of new options for us Sitecore developers. As a bonus we suddenly have a data store for anything at any time instead of either trying to make the data fit into Sitecore items or give up and go with a custom database. Now […]
Implementing a WebApi service using ServicesApiController in Sitecore 8
This will just be a quick post about implementing a WebApi controller in Sitecore 8 using the ServicesApiController class. Perhaps this post can help some of the teams in the ongoing Sitecore Hackathon, who knows. The ServicesApiController class Sitecore.Services introduce a new abstract class called ServicesApiController that derives from the System.Web.ApiController. The class itself only purpose is to identify […]
Securing the password recovery experience in Sitecore 8
Following my post on password recovery in Sitecore 8 fellow Sitecore MVP Kam Figy pointed out how the default Sitecore implementation potentially can be used by a malicious individual to block an editor from logging in by resetting their password automatically. This can be done simply by creating a script that request a new password for a known user […]
The amazing password recovery experience in Sitecore 8
Along with the new login screen in Sitecore 8 there is also a new implementation of password recovery for editors. In the old versions of Sitecore the /sitecore/login/default.aspx page redirected the user to a page called passwordrecovery.aspx. This page used an asp:PasswordRecovery asp.net standard webcontrol. Personally I never became fond of all of these standard but rather […]
Changing the image on the login screen in Sitecore 8
I really like the new login screen in Sitecore 8. The old one was also getting very old, except for some small makeovers especially from Sitecore 5.3 to 6 and the addition of a few new applications it has been almost completely static for more than 8 years. Once upon a time the login screen had […]
Extension methods for versioned layouts in Sitecore 8
Finally I am back blogging. The last 1½ month of my paternity leave and the first week of work did not go exactly as I had planned. Looking on the bright side I have learned a lot about how a baby’s immune system evolves. It goes something like this, baby gets a virus/bacteria, it incubates and […]