-
The Layer concept in Modular Architecture
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…
-
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…
-
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…
-
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…
-
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…
-
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…
-
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…
-
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…
-
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…
-
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…
-
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…
-
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…
-
Add a SPEAK application to the Sitecore 8 Launchpad
My brain is currently in a complete amoeba state. This is my first blog post since I started my paternity leave some 4 weeks ago. I had been planning to write a post a day but I guess this is not really…
-
Sitecore 7.5 Analytics templates bug
Found an interesting bug today in a Sitecore 7.5 installation and I think it is worth sharing. I have to mention that Sitecore Support has been notified and they are working on an official fix. I have noticed this issue…
-
Generic extension methods for Sitecore ContentSearch
I would first like to mention that the code shown in this post is not originally mine. I’ve been using it quite often lately and made some tweaks to it which is why I think it deserves a quick blog post.…
-
Sitecore 7.5 Analytics and user manipulation in Engagement plans
I have recently had the interesting and challenging task of upgrading a Sitecore 7.2 installation to the newest Sitecore 7.5. In the project we were extensively using Analytics code which had to be updated. That is where the fun began. In…
-
UpdateHelper SaveInstallationMessages() removed in Sitecore 7.5
Sometimes we use the Sitecore class called UpdateHelper to install packages on different Sitecore instances for example via a webservice. Today I copied some code from a Sitecore 7.2 installation which did exactly this. It is a simple service class…
-
How to create a custom cache in Sitecore
When coding a Sitecore solution you sometimes need a cache to store some values. I’ve seen a lot of different cache implementations in Sitecore solutions that do not use the Sitecore API. Such an implementation could for example use a static or…
-
Sending emails in Sitecore
Sometimes you need to send an email from your Sitecore code. I’ve seen a ton of solution implementations where the developer have written some custom class that sends out emails using a SMTP client, good old classic ASP.NET. I myself even wrote…
-
Matching Wildcards in Sitecore
While reading this nice blog post by my colleague Uli about resolving a Sitecore SiteContext from an URI I noticed that he used a regex to match a hostname using * as a wildcard That made me remember the Sitecore class called Sitecore.Text.WildcardParser.…