Code samples articles

All articles in the Code samples category

Custom markdown editor for string properties in Episerver

  • Ted Nyberg
  • 16 September 2016
  • 0

Markdown is a light-weight text formatting syntax, suitable for multiple channels and content APIs, not just for web pages. In this post we implement a custom Episerver editor to provide users with...

Icon for property help texts in Episerver

  • Ted Nyberg
  • 1 September 2016
  • 0

Web editors sometimes overlook the fact that properties may have helpful descriptions available by hovering property names in edit mode. This simple example demonstrates how to add an icon in edit...

Denote required properties in Episerver

  • Ted Nyberg
  • 1 September 2016
  • 0

This code snippet shows how to add an asterisk to the property names of all required properties in Episerver.

Force form edit view for content in Episerver

  • Ted Nyberg
  • 31 August 2016
  • 0

This code sample demonstrates how to force form editing for specific content types in Episerver, for scenarios where on-page editing isn't practical.

Editor for string list properties in Episerver

  • Ted Nyberg
  • 14 July 2016
  • 0

This time we're creating a custom Dojo widget as an editor for string list properties, making use of the new PropertyList type that was introduced in Episerver 9.

Custom editor for a content area in Episerver

  • Ted Nyberg
  • 7 April 2016
  • 0

The Episerver UI can fairly easily be customized to display a custom editing control for specific property types, or even specific properties. In this example we create a custom editor to allow web...

EPiServer Google Maps editor on NuGet

  • Ted Nyberg
  • 11 December 2014
  • 0

The Google Maps editor, for editing coordinates in EPiServer, can now easily be added to any EPiServer 7.5 website through EPiServer's NuGet feed.

Fallback property values in EPiServer using attributes

  • Ted Nyberg
  • 12 November 2014
  • 0

Fallback property values in EPiServer is a common, and often repetitive, requirement which can be simplified by decorating content type properties with an attribute to specify fallback behavior.

Add a custom toolbar button in EPiServer 7

  • Ted Nyberg
  • 25 June 2014
  • 0

In this post we continue exploring how we can use Dojo to extend the EPiServer 7 edit-mode interface by adding a custom toolbar button which can be used to perform actions on the content currently...

Create an EPiServer widget for edit mode

  • Ted Nyberg
  • 23 June 2014
  • 0

Tutorial on creating a Dojo widget for EPiServer 7 to extend edit mode with a widget in the assets pane, providing contextual information about the content being edited.