Episerver Routing

A lot of people starting Episerver struggle to get their head around how it works.  If your website is based on the MVC then understanding how the Episerver pipeline works, how pages are loaded, what parameters are passed around behind the scenes, etc… will make your life a lot easier.  This section will hopefully help you gain this understanding.

Setting Up Episerver To Always Use WWW Links

Probably, one of the most forgotten about features developers forget to set-up is to enforce either a WWW or non-WWW Url strategy on a website. The WWW/non-WWW debate has been waging for years and a lot of my non-technical clients are unsure of what is the difference between www vs non-www URLs in terms of Episerver […]

How To Manually Render A Episerver Page Or Block Using .NET

This post is another code example that the majority of people will never really need. If you are reading this and you think you want to use the demo code, then my advice would be to strongly consider if the design of your project is correct. In almost every situation, it's a lot easier to […]

How To Redirect To Another Episerver Page From A MVC Controller

When we work with Episerver, it is sometimes necessary to have to do things like re-direct to different actions or pages from an MVC controller. In today's guide, I'm going to cover a few simple ways to achieve this: In normal MVC we can re-direct to a controller using a RedirectToAction, like so: When working […]

How To Get The MVC Controller Of An Episerver Block

I've previously written about a few requirements around donut caching and rendering custom content areas that involved needing to know the action and controller required for the current block.  In How To Get The Action, Controller and Tag Data Out Of The Context In Episerver, but the next part of the puzzle is trying to […]

How To Get The Episerver Action, Controller and Tag Data Out Of The Http Context In MVC

Recently, I had a task of writing a custom cache provider, which was fun.  The reasons and tribulations of that task are outside the scope of this article, but as part of the journey, I needed to call a lot of block controllers directly and do all sorts of other strange things.  Unless you're trying […]

How To Pass Parameters and Debug Route Data In Episerver

Trying to pass parameters between pages and blocks in Episerver seems to give a lot of people headaches and can be the root of a lot of frustration. One of the main issues I see a lot of people struggle with is understanding the difference between standard MVC Routing and Episerver routing. I can hold […]

EPiServer Segments Explained, registering custom routes in EPiServer

I've previously blogged in EPiServer 7 Routing For Dummies which talked a bit about segments in Episerver. Today we're going to go one step further and create our own custom segment. What is a segment? In the switch over to .Net and MVC the way Url's are generated are very different.  In the old static […]

How To Set-Up A Partial Router

In today's tutorial, I will show you how to implement a partial router within EpiSever. If you want to know what a partial router is, then first please read Dummy’s Guide To Explaining Partial Routing Within Your EPiServer. We will do this by implementing a basic blog. The blog will be populated by a blog […]

Dummy's Guide To Explaining Partial Routing Within Your EPiServer

Today's guide will try to explain what partial routing is, why you may want to use it and how to implement using Episerver within your site. The concept of partial routing is pretty easy to grasp.. the implementation details took me a bit longer to get my head around. So before we go into the […]

Generating a friendly URL within your EPiServer MVC View

SEO friendly URLs are essential to improve the usability and accessibility of your website, also by hiding your Page Id's from your customer, you're adding an extra layer of security by not leaking any of your internal Episerver data.  A page ID isn't the worst thing in the world to pass as a querystring parameter […]

EPiServer 7 Routing For Dummies

On one of my first EPiServer 7 projects was to implement a blog within Episerver.  When you work with concepts like categories, tags and blog posts you might not want these assets living inside your content tree like the example below: In these types of situations, you need to start looking into custom routes, partial […]

EPiServer 7 : Enforcing Lower Case Url's

This post is short and simple.  Out of the box EPiServr does not provide a way to enforce lowercase Url's.  Out of all the solutions I've seen on the web, the main one by Joel Abrahamsson uses Url Segment to make the Url lower case when the page is created. We had a requirement to […]

EPiServer 7 : Installing BVN.404Handler for an MVC Project

Install The Module First, install the package 'BVN.404.Hamdler' via Nuget from the EPiServer Nuget feed: http://nuget.episerver.com/feed/packages.svc/ Next, download the extension and add in BVN.404Handler.MvcContrib plug-in by Mark Everard here. Add/check the following is in your web.config 'configSections' section Change the 'fileNotFoundPage' property in the 'bvn404Handler' section By default the BVN plug-in assumes you are using […]