Episerver Best Practices

The term ‘best practice’ is something every developer reading this should want to aim for. A Google search of ‘coding best practices’ returns over 1.5 million results, which shows what a hot topic it is. I’ve been building CMS websites for over a decade and in that time I’ve seen some really well-architected websites and I’ve seen other project that has been scrapped immediately. The difference between those projects is usually based on how well it was built in the first place. Now that you know the basics of building an Episerver website, before you leave I’m going to tell you some tips to make sure the code you write is something you can be proud of.

Introduction

1. The Do’s And Dont’s When Storing A Reference To Episerver Content In An External Data Source
2. How To Prevent A Single Block Exception Taking Down Your Whole Episerver Page
3. Dependency Injection In Episerver – ServiceLocator and Injected Explained

TIPS & TRICKS

1. How To Enable Beta Features In Episerver
2. How To Get Page Revisions For An Episerver Page
3. Useful SQL Commands

Latest Episerver Best Practices, Tpis and Tutorials

Episerver DXC - How To Architect Your Episerver website in the new world

I've talked previously in Episerver DXC – What Is It? about the new hosting and service offering from Episerver. If you decide to work with DXC, or indeed the cloud, then some of the old patterns and technologies that you've become used to will need to change.  One of the main issues you'll encounter is not having […]

Episerver 9 - Useful SQL Commands

Like all CMS solutions, Episerver stores your website's data within a database and provides a brilliant collection of API's to allow developers to access that data. When we build a website, developers should never directly call the CMS database for numerous reason, scaling, upgrade-ability, performance, security to name a few. When building a website or […]

The Do's And Dont's When Storing A Reference To Episerver Content In An External Data Source

Sometimes, when we work with Episerver, we may need to store a reference to an Episerver content item in a third-party service or database. On a recent project, I came across a situation where a developer had chosen to just store the ID part of a content reference and he didn't understand the subtle bug […]

How To Prevent A Single Block Exception Taking Down Your Whole Episerver Page

Episerver provides content editors with a lot of flexibility for configuring content.  Gone are the days of having lots and lots of different templates.  On my projects, I would typically have less than 20 page types and then x number of blocks.  One common problem that keeps cropping up, is how to deal with block […]

How To Get Page Revisions For An Episerver Page

When you work with content in the CMS you may need to work with older versions.  When you use the API's like IContentRepository or IContentLocator they will always return you the latest version of the content.  99% of the time you won't need to worry about different versions,  if you do however, you need to […]

Dependency Injection In Episerver - ServiceLocator and Injected Explained

Dependency injection is a fairly standard computer science topic nowadays, but I still see a lot of confusion over how dependency injection works within Episerver. In today's guide, I'm going to cover the tools Episerver give us developers out the box and cover some of their pro's and con's. The ServiceLocator The ServiceLocator can be […]

How To Enable Beta Features In Episerver

Since Episerver has adopted the rapid-release cycle for their development process, a lot more beta code is now available. Out of the box, Episerver beta functionality is disabled by default.  Unless you specifically enable it, beta features will be unavailable to normal users. This guide will help you to enable beta features within your website. Adding […]

Episerver Structure Map Guide

With the release of Episerver 7, having a good understanding about dependency injection is critical to making a successful project. Out of the box, Episerver uses structure map so you don't have to add it in. You will need to be able to configure it. This guide was written for Strucutre map 2, so you […]