Umbraco CMS - 2014

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

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