Umbraco CMS

@umbracoproject

Minify HTML output of your pages

Minification of HTML output using ASP.NET IHttpModule
 
0
Minification of resource can speed up your page load and decrease network traffic making you pages load faster, especially on a poor Internet connections. Keep in mind that not all of your website visitors have high speed Internet connection. Especially if you are targeting countries with mostly poor Internet connection, HTML minification can really boost the page load and improve user experience ... read more

Accessing UmbracoHelper in HttpHandler request

Working with UmbracoHelper and IPublishedContent in HttpHandler
0
If you were planning to create sitemap.xml in Umbraco, you most probably were doing it with HttpHandler. This was fine until Umbraco version 6.2.2. If your website was running in lower version, most probably after update your HttpHandler were crashing since UmbracoContext.Current returns null. ... read more

Same page language switching in Umbraco

Land on the same page in different language in Umbraco using Relations
0
When we build multi-language website, we usually create two root elements which represent different language websites. To switch the language you just need to add a link to other root elements which represent other languages of the website. With this approach, when you switch language you will end up at homepage of the language regardless which page you were viewing. ... read more

Getting cropped image the smart way

The way to get cropped image URL with option to load original image too
0
I noticed that some of the content managers keep complaining about the quality and size of cropped images. If you lower down quality, file is smaller but in some cases it gets blurry with quirks which comes from compression applied to a file. Let's face it, image cropper is not Photoshop with all options for image optimization ... read more

Fastest way to return JSON result from a controller

Resturn JSON in MVC controller action
0
Recently I had to develop a form on a page which loads secondary dropdown list items based on selection in a primary dropdown list. Because secondary list items are basically children elements of the one selected in primary I just had to run through all children and just return text-value pair object to JavaScript to populate secondary dropdown list. ... read more

Dictionary lists in Umbraco

Out of the box solution for Dictionary lists in Umbraco
0
Umbraco implementation of localized values is based on Dictionary which is in settings section of Umbraco back-end. This works pretty fine in case you need to display only string values but does not work localized lists. For example you might want to have country list for your contact form on your website ... read more

Best practice tips for large scale Umbraco websites

Experience based tips for building large and complex websites in Umbraco
0
Umbraco is a great CMS, it simple, easily extendible and most important it is free. However, it is not build for large scale websites, since presentation and back-end are on the same machine and all published content is stored in AppData/umbraco.config file. This is good because it can be easily cached and database read is reduced ... read more

Automatic property population when node created

Pre-populate properties right after node is created
0
For pretty much every website I built in Umbraco, there is some sort of title property for page document type. Either it is a title for navigation in breadcrumbs or menu or main h1 page title. Usually some of these properties need to be mandatory and in most cases they are the same as the name of the node in content, but still, you have to keep ability to override the value with these properties. ... read more

Serving embedded resources through WebAPI in Umbraco

Make package deployment easy with single file deployment
0
Recently I've deploying GoogleMap Editor package to Umbraco community. During development I realized that package will have to include script, some html templates, images... I had no problem with that but when it came to actual package build I realized that I will have to deal with bunch of files and even during development, so se some changes which were not dll related I had to restart app by touching web.config. ... read more

Fetching image cropper cropped file path

IPublished content extension for getting crop image file easily
0
ImageCropper datatype was once part of uComponents, but because it is so usefull, it is now included into standard Umbraco instalation. However as much it is useful, I could not find the way to get cropped image file properly with anything that was shipped with Umbraco installation. Therefore I decided to write my own extension and to make life easier while working with ImageCropper in Umbraco. ... read more

Hide property in Umbraco

How to hide property in Umbraco backend
0
There is no option for hiding a property in Umbraco. Simply, when you define a property for document type, it is assumed that you are going to use it. However, sometime you need to hide it for some specific condition, like level of document in a tree, or document type which might inherits some property which you do not want to use in inherited document type ... read more

.NET

read more

JavaScript

read more

SQL/T-SQL

read more

PowerShell

read more