How To Use C# Classes To Create Custom Database Tables and Repositories With Umbraco

Today, I’m going to talk about a sensitive area for some developers. Creating custom tables within your CMS database. Custom tables within your CMS database are frowned upon by a lot of purists. In a lot of situations, I consider myself to be in this camp. If you build you application logic within your website, […]

How To Create A Search Page In Umbraco

Do you need to implement a site search within your Umbraco website, then read on. Search is technically one of the pages on a lot of projects. A basic search is pretty easy to get started, but the further down the rabbit hole you get, the more complicated things become. Before I panic you too […]

How To Create A Paginated List In Umbraco

Displaying lists on a website is another requirement of almost every website, website search, blog posts, latest news the list could go on and on. If you find yourself wanting to create a list in Umbraco and need some advice, then read on. Front-end Vs Back-end As I write this it’s 2017 and over the […]

How To Add A Recapture Within Your Umbraco Website

Spam is annoying, wasting hours deleting spam is also annoying; if you want to make your life a little easier then read on. CAPTACHAS were introduced to try and stop magic robots from taking over the world… well your inbox at least. If you have ever managed or run a wordpress site that has a […]

How To Create A Web Api In Umbraco In Less Than 5 Minutes!

Building an API within a project is a pretty standard process now. When you use .NET and MVC you can use web API to set-up an API layer pretty easily. In a standard .NET approach, you create a service that inherits from a controller, define some routes, update your route config to point to your […]

How To Render Rich Text In Your Views When You Use Strongly Typed Models Within Umbraco

When you work with Umbraco, or in fact any MVC or .NET website I always recommend trying to work with strongly -typed models. In case you’re fairly new to .NET and that statement confuses you, what I mean is that you should always work with C# classes instead of hard-coding strings all over your code […]

How To Display Code Snippets On Your Umbraco Website

If you’re working on a website that needs to display code (like this one), then you’ll need a way to make it readable and look cool. Instead of wasting your time trying to write something yourself, it’s much easier to implement a ready-made off the shelf solution. In today’s tutorial I’m going to tell you […]

Umbraco: Document type inheritance for document type with ” alias, cannot be updated.

If you have read any of my getting started with Umbraco guides, then you’ll know that I recommend and favour using strong types objects with Umbraco.  As Umbraco doesn’t allow you to work with strongly-typed objects out-of-the-box, you’ll need to use a third-party package, or write something yourself. I recommend looking at uSiteBuilder, however, when you work […]

Umbraco: How To Get The Url From An IContent

This is a quick post for those of you struggling to figure out how to get the URL for a page within Umbraco by code. Figuring out the friendly Url is something that you will need to do sooner rather than later, when you’re creating a website. You’ll obviously need a menu, or you’ll need […]

UmbracoHelper Vs ContentTypeService

Umbraco has several useful APIs and one common misconception is when to use the UmbracoHelper, compared to the ContentTypeService. If you look at the constructor of the Umbraco Helper, it takes an UmbracoContext as a parameter and this is when the first big difference appears. The UmbracoContext, like the normal.NET HTTP Context, works on a […]

Umbraco, Unable to publish – String or binary data would be truncated on Saving

This error can be a bit of a school boy error. I’ve only usually bumped into it when I’ve been in the midst of a content migration phase and using something like uSIteBuilder. When importing text once in a while I’ll see the ‘Unable to publish – String or binary data would be truncated’ when […]

The Umbraco ApplicationEventHandler Explained

On a lot of projects, you’ll need to hook into the Umbraco pipeline. In today’s tutorial, I’ll briefly explain why you may want to consider using an ApplicationEventHandler, what sort of things you can use it for and the code you’ll need to write in order to create one. What things will I put in […]

Umbraco : GetRootContent Resolution is not frozen, it is not yet possible to get values from it

If you run into this error, then it’s likely that you’re trying to do some form of Umbraco API call in application event handler, or, in some custom code outside of the normal route hi-jacking path. The error basically means the Umbraco context hasn’t got far enough into the pipeline to set everything up. In […]

How To Create A Clean Umbraco Database?

As developers, we often want to experiment and tinker around with our website, one side effect of this is that databases tend to end up corrupting the database, or, wanting to start from scratch.  Luckily, with Umbraco, this is very easy and in today’s tutorial, I’m going to go over the process to create a […]

How To Debug Your Umbraco Website Using the Health Checker

If you are using Umbraco 7.5+ you can use the ‘Health Check’ to check that your website is configured correctly.  Historially, to check your Umbraco configuration, you had to manually validate that your web server had the correct configuration.  For example, if you run Umbraco in a load balanced environment, then this involves remoting onto […]

Security Concerns You Need To Consider When Developing an Umbraco website

Umbraco security should be a topic of huge importance for every website owner. Google blacklists over 20,000 websites each week and Cybercrime damages are expected to cost the world $6 trillion by 2021. If you are serious about your brand, your company and your website, then you need to consider some Umbraco security best practices. […]

How To Add Dynamic Fields And Page Information To An Umbraco Template

This is the fourth article in ‘Creating Your First Umbraco Page’ series.  So far we’ve split a very boring HTML page into a master layout, header component, footer component and a homepage template.  So far the page is all hard coded and content editors can’t update any of the text.  In today;s guide, we’re going […]

How To Architect Your First Umbraco Page

This post assumes that you know nothing of creating a page in Umbraco or MVC. By the end of this article, you will understand what a layout is, what a template is and what a partial view is. These are the fundamental concepts of creating your first page, that you can use in the real-world. […]

The Umbraco Cloud Portal Explained

The Umbraco cloud is where you will manage your cloud website.  The portal can be thought of as your IIS, WAF (web application firewall), account management and user management section.  Like Umbraco, the portal is pretty straightforward to get to grips with and you can get to grips with it fairly quickly. Manage Environments: This is […]

How To Purchase An Umbraco Cloud License

If you decide that Umbraco Cloud is for you, first you need to sign up for a trial account.  After signing up to the 14-day trial, you’ll be prompted to purchase a monthly subscription license.  To register your website, you will need to open your Umbraco web portal.  You have two ways to access the portal.  When […]

Get Up And Running With A FREE Trial Umbraco Cloud License In Less Than 10 Minutes!

In today’s guide, I’m going to walk you through the process of creating a demo website with Umbraco cloud. The process is very easy and should only take you about 10 minutes. First, you’ll need to sign-up for an account over at Umbraco, here. Add in your details, NO CREDIT CARD REQUIRED, click ‘Go, Setup […]

Implementing Continuous Deployment With Umbraco

Nowadays, it seems like one of the first things that I do when I start working with a new client is help them introduce a continuous deployment process.  Being able to automate your deployments will not only help reduce bugs and errors making it onto your live website, it will also free up a lot […]

What Is Umbraco Cloud?

Cloud hosting is gaining more and more momentum. Umbraco Cloud (formally known as Uaas (Umbraco As A Service)) is a managed service provided by Umbraco to host your website in the cloud. This term of ‘managed service’ seems to confuse a lot of people.  Traditionally, to host an Umbraco website you would need a server.  Your website […]

How To Add A Macro Into The Richtext Area Within The Umbraco Backend

So far in our journey, I’ve discussed pages and templates that are pre-defined and fairly limited.  The Macro was introduced to allow content editors to have a bit more power over the content that gets displayed.  A common example of an Umbraco macro is the Forms macro.  If the forms macro enabled, you will be able […]

How To Add and Edit Word Docs, PDF Files and Media To Your Umbraco Pages

Adding Word docs, PDFS, and media into Umbraco is exactly the same as adding and editing images… it all happens in the media library To access the ‘Media Library’ click on the Media icon on the left-hand menu.  This will load the Media Viewer where you can view all the images, word documents, PDFS etc.. […]

How to Undo Page Changes in the Umbraco Backend With Page Revisions

Umbraco will save a version of your page every time you make a change and save it.  This version management is useful for several reasons: If you need to legally prove what content was displayed on your websites and on what dates If you made a mistake and need to revert the information to a […]

The Umbraco Richtext Editor Explained

The Rich Text Editor is the control you will use to add most of your content onto your website.  I think almost everyone reading this will be familiar with the interface.   If you have used Microsoft Word, or Google docs the interface, then the interface should be pretty familiar. The reason why the rich […]

How To Work With Images In The Umbraco Backend

A web page would be pretty boring without images.  To display an image on one of your Umbraco pages it must be loaded into the Umbraco Media library. Many companies will provide you with a pre-set library of images that you can use, while other companies will trust their content editors to upload images themselves.  Before we […]

How To Copy/Clone a Page in the Umbraco Backend

Instead of creating a new page within Umbraco each time, it’s often quicker to copy an existing page, or section instead and then change the bits you care about.  Cloning pages in Umbraco is very simple.  In the Umbraco backend, find the page you want to clone in the navigation explore and right-click on it to […]

How To Move A Page In The Umbraco Backend

Pages can easily be moved within Umbraco.  The most common reason to move pages is to change the order they appear in menus, or news feeds. Moving a page might be as intuitive as you first think.  In most systems, you simply drag and drop pages, but this doesn’t work that well in Umbraco, instead […]

How To Delete and Restore a Page in the Umbraco Backend

Sometimes, simply unpublishing a page within Umbraco isn’t enough. If you know you will never need the contents of a page again then there’s not much point in keeping it anymore.   Umbraco can work with hundreds of pages, but, as a general for any CMS system, it will be more performant if you can […]

How To Edit An Existing Page In The Umbraco Backend

One of the most useful aspects of any website is that unlike a book, a webpage can be updated easily and frequently.  Editing existing pages within Umbraco is even easier than creating a new page. Finding Your Content All your Umbraco web pages are viewable from the content tree view within the ‘Content’ section in the […]

How To Unpublish a Page In The Umbraco Backend

After you create and publish an Umbraco page you may want to unpublish it. There are many reasons for wanting to unpublish a page; a news item is out of date, a product is out of stock etc… Like publishing pages, you have two main options for unpublishing content. The first is immediate and the […]

How To Publish Content Within The Umbraco Backend

After you have created a page within Umbraco, there are several options available to you to help you manage your content.  This post will help you understand these options and how to use them Saving Just like a Word document, you can save your pages so you don’t lose your work.  Saving a page won’t make […]

How To Reinstall Umbraco

In this post, I am going to explain how you can reinstall your Umbraco database, so you can start from scratch.  There are a number of scenarios when this is really useful.  Building a new website can often involve a lot of trial and error of approaches until we find the best one that meets the […]

Umbraco Interface Explained

After you have logged into Umbraco, the first thing you will see is Umbraco backend interface. The content section is where most content editors and marketers will spend their time, although there are several other sections that allow you to manage different aspects of your site. The content section, as the name implies, allows you to […]

How To Log Out Of The Umbraco Backend

Logging out of Umbraco is pretty simple, that it almost doesn’t deserve a blog post.  Your account information is on the top left-hand side of the editor. If you click the profile button you will see the account information dialog. Click, logout and away you go…  Simple!

What Is An Umbraco Surface Controller?

Mastering Surface controllers will make your life easier when working with forms in Umbraco. I’ve written about route hijacking before within an Umbraco website. Route Hijacking, will tel your website how to route a virtual page request to your MVC controller. In today’s guide, we’ll take the process one step further and talk about Surface […]

What Is Route Hijacking In Umbraco

Route Hijacking is an Umbraco concept that you will need to understand if you want to use MVC with Episerver. What is Route Hi-jacking? Route Hijacking is a way to hook into the MVC pipeline so you can run custom code and view logic before an Umbraco page is rendered.  Whenever someone visits your site, […]

How To Enabled HTTP2 With Umbraco

Over the last year or so, HTTP/2 has become a more widely adopted feature, yet a lot of web developers still don’t know that much about it. In today’s post, I’m going to talk about what HTTP2 is, why you should be using it and how to implement it with your Umbraco website. What Is […]

How To Store Your Session Cache With Umbraco – Redis Explained

In today’s post, I’m going to talk about the different ways you can deal with session caching in a load balanced environment. Caching Issues With Umbraco in a Load Balanced Environment If you work on an Umbraco website, stored on a single node, session caching is pretty simple, you store your site visitors session cache […]

Umbraco SEO, HTTP or HTTPS?

As of August 2014, Google started to give SEO ranking points for sites that work entirely over HTTPS. If you haven’t implemented an HTTPS only strategy, then in today’s post, I’m going to cover some of the benefits of why you should consider it and how to implement it. What is HTTPS? HTTPS or ‘secure […]

Tips On Improving your Umbraco Websites Performance Issues

Typically, when developers are faced with performance improvements, a natural first area to look at is optimising the backend code. In recent years, a lot of research has been done in this area and according to ‘High-performance websites’ in most cases, the big quick wins are usually found in the frontend. According to the research […]

Getting started with Umbraco CMS Development

I frequently receive e-mails from developers who are new to Umbraco asking for advice on how to get started with Umbraco development. Today’s post will attempt to answer that question for anyone new to Umbraco and wants to learn how to become an Umbraco ninja in no time. Prerequisites Umbraco CMS is developed on Microsofts […]

Parsing A Date From Umbraco

This post is a quick reference about how to convert a date from Umbraco and convert it into a C# DateTime when using dynamic binding. When you work with Umbraco, I strongly recommend using a strongly-typed model approach, to learn why, I suggest you read this article, How To Write Safe Testable Code When Using […]

How To Write Safe Testable Code When Using Dynamic Model Binding With Umbraco MVC

After going through the code on a recent project, I came across a lot of boiler-plate code. The site was built in web forms and used dynamic model binding directly in code that looked like this: Personally, I think there is a lot wrong with this line of code: Not strongly-typed As I work with […]

How To Set Up A Custom Lucene Index With Umbraco

Umbraco, like a lot of CMS systems, decided against creating a custom search functionality from scratch, instead, they implement one of the most widely used search providers available, Lucene. Lucene is a really powerful search library that is also super quick. In today’s guide, I’m going to cover the basics to get you up and […]

How To Manually Upgrade The Umbraco Database

A website can be a company’s gateway to making sales, generating leads or getting customer engagement. In some companies, zero-time is vital. If the website is down for maintenance while it’s being upgraded, it can cost a company hundreds, or even thousands of pounds in lost revenue. One way to create zero time deployments is […]