Episerver Blocks

Being able to split your page designs into reusable components that content editors can then manipulate how they want tom is one of Episervers best-selling points,  These components in Episerver language are called ‘Blocks’.  This section describes what blocks are is more details, how to create some and some how-to guides on creating specific blocks that you may want to implement within your project.

Episerver 7 : Creating a custom form block that posts back to a page controller

I have spent many an hour of my life messing around with trying to get information to be passed between different controllers in different states.  A fairly common requirements is having a page that is made up of a form built up via several blocks, f[...]

EPiServer Blocks A Quick Reference Guide

Last time I discussed what a page type is, in this article EPiServer Page Types A Quick Reference Guide, today I'll talk about blocks.   A website is made up from a number of different types of pages.  Each of those pages are made up of a number of d[...]

How To Make A Block Use Multiple Views ? A Partial View Controller Explained

One of the main benefits of using MVC is the separation between the view and the model.  This separation means a block or page can have more than one view.  In Episerver we have several methods available to us for rendering views.  In today's article[...]

How To Configure Episerver To Allow Users To Render Blocks At Different Sizes

In Episerver 7.5 and above, a new feature was released that allows content editors to change the widths of blocks and pages partials. In my last article How To Make A Block Use Multiple Views ? A Partial View Controller Explained I briefly covered th[...]

How to Preview a Block in Episerver

One thing you will need on your first Episerver website is a method to preview blocks within the editor. Previewing a page will work as expected, but, when you try to preview a block within a ContentArea, out-of-the-box you see a 'Preview is not avai[...]

How to render all your block variations in preview mode in Episerver

I've talked previously about how to preview blocks in Episerver, How to Preview a Block in Episerver.  In today's tutorial we are going to cover previewing different renderings for your blocks based on all the available display options set on the web[...]

How To Manually Render An Episerver Block In Code

This post is another rare case example and, as the usual disclaimer, 99% of the time you will never need to do this.  The information in this article is a working that may be required in exception circumstances.  Situations like custom caching or ren[...]

A Very Simple Tip To Make Episerver Development Easier

When you work on a project, you will often face the challenge of needing to start work on the website before the actual HTML is ready yet to integrate.  Over the past few months, I've been using a really simple trick to help speed up my development p[...]

The Difference Between A Shared Block And A Local Block

When we work with Episerver blocks you may have heard of 'shared' blocks and 'local' blocks.  In today's guide, I'm going to discuss the differences between them and go over the code required for each. Shared Blocks... Local Blocks... Why is this So[...]

How You Can Make Use Of Local Blocks To Write Less Code and Standardize The CMS

One very common requirement on every project is to create a number of page and blocks with either an image or link the content editor adds.  In Episerver when we do this we use a ContentReference to get a reference to the asset and then somewhere bef[...]

Homepage Learn Episerver CMS Episerver Developers Guide Episerver Blocks
Back to top