Performance when using controllers for blocks

Sometimes you may consider using controllers for all blocks, instead of just having the view engine select the correct view. As far as I know the only real difference is performance. But how much will performance be affected if you choose to use controllers for all blocks?  TL;DR: around 10% better performance without controller, according … Continue reading Performance when using controllers for blocks

Use PowerShell to set up an Episerver environment in Azure

Remember the time when setting up an Episerver environment took hours? I don't mean your local dev-environment, I mean a test or production environment with IIS and SQL server. Maybe you got access to one or two freshly installed Windows machines where you needed to install windows features, IIS addons, SQL server, et.c. And more … Continue reading Use PowerShell to set up an Episerver environment in Azure

Episerver – How to know a block’s position in a content area

Sometimes you want to render a block differently depending on what position it has in a content area. Per Magne Skuseth presented a solution some years ago. Here's a couple of alternate ways of solving the same issue. Know the index of a block using a controller Add a tag (e.g. "IndexInContentArea") when rendering the content … Continue reading Episerver – How to know a block’s position in a content area

Mixed-mode OWIN authentication for Episerver editors

Since the beginning of time, or at least since I had my first Episerver experience (Episerver 4.62), it has been possible to use the Multiplex membership- and roleprovider. The multiplex-providers lets you use more than one membership- and roleprovider. A common scenario is to enable logins for both users that are saved in Episerver´s local SQL database, and … Continue reading Mixed-mode OWIN authentication for Episerver editors