Blog

Posts on Umbraco development as well as development and business practices
(Filtering by category: Code Bits And Pieces) Remove Filter
How to stop using strings for view and controller names

How to stop using strings for view and controller names

A T4 template to save you some time from using strings for your view paths and controller names. Partially based on T4MVC, but with some twists to make it simpler and more flexible.

Read More
A richer Block List view in the Umbraco back office

A richer Block List view in the Umbraco back office

A general-use, custom block view for the back office that can list the block doctype, number of sub-items, and also images and titles for sub-items.

Read More
Caching Umbraco nodes for use in multiple places

Caching Umbraco nodes for use in multiple places

Have a lot of "special" nodes on your site that you need to reference every now and then but you don't want the delays associated with traversing the whole document tree to find them? We'll show you a way to make this easier by caching them for easy retrieval. Strongly-typed models are required for...

Read More
Returning variant (multilingual content) data from a controller in Umbraco 8 with AJAX calls

Returning variant (multilingual content) data from a controller in Umbraco 8 with AJAX calls

How to set up controller actions that are called via Ajax in order to get data in the correct culture in Umbraco v8 versus Umbraco v7 (using IVariationContextAccessor vs passing and setting culture)

Read More
A simple way to hide fields in the Umbraco back end

A simple way to hide fields in the Umbraco back end

A (fairly) simple way to get some not-needed-for-now document properties out of your way by hiding them in the back end without the need to delete them.

Read More
Responsive background images in Umbraco with focal point preservation

Responsive background images in Umbraco with focal point preservation

Responsive background images are always an issue since they're only possible via CSS media queries. The very useful SRCSET attribute can't be used with background images. In this article, we attempt to create an automated way to handle such images in Umbraco in order to increase speed and preserve...

Read More
An SQL script to get all dictionary items for all languages in a single table

An SQL script to get all dictionary items for all languages in a single table

Wouldn't you like to have all dictionary items on a single table that you could paste inside a spreadsheet? Even if you wouldn't, your clients probably would.

Read More
Responsive images with srcset and image cropper

Responsive images with srcset and image cropper

In this post you'll learn how to use Image Cropper together with the SRCSET HTML attribute in order to generate mobile-friendly, responsive images for your site. The SRCSET attribute defines a different image for each viewport size and delegates the decision on what image to load to the browser.

Read More